Today we will discuss about C program to find Largest Number among three numbers. To solve this problem we use Nested if...else statement.

C Program to find greatest of three numbers

//wap to find largest number form three numbers

#include <stdio.h>
int a, b, c;
Printf("\n enter a, b, c");
Scanf("%d, %d, %d" &a, &b, &c);
printf("greatest number is=%d", a);
else if (b>c)

printf("greatest number is =%d",b);
printf("greatest number is =%d",c);

Post a Comment

Previous Post Next Post