Computer Science, asked by arjunnani, 1 year ago

write flowchart to find largest of three numbers using nested if

Answers

Answered by takiyagg2
0

Answer:

if "%d" is hard to understand , then change it to an alphabeticle sign

Explanation:

#include <stdio.h>

void main(void)

{

int A,B,C;

printf("Enter 3 integer number \n");

scanf("%d",&A);

scanf("%d",&B);

scanf("%d",&C);

if(A>B){

if(A>C){

printf(" %d is the Greatest Number \n",A);

}

else{

printf("%d is the greatest Number \n",C);

}

}

else{

if(B>C){

printf("%d is the greatest Number \n",B );

}

else{

printf("%d is the greatest Number \n", C);

}

}

}

Similar questions