draw a flow chart to read three numbers from the key board and find out the largest among them.assume that the three numbers are not equal
Answers
Answered by
4
#include<stdio.h>
int main()
{
int a, b, c;
printf("enter a,b and c values: \n");
scanf("%d %d %d", &a,&b, &c);
if(a>b && a>c)
printf("%d is the largest number",a);
else if(b>a && b>c)
printf("%d is the largest number",b);
else
printf("%d is the largest number",c);
}
Attachments:
Similar questions