/* Program to find out the largest of three numbers */ /* Problem 2 */ #include #include main() { int a,b,c; clrscr(); printf("Please enter the first number (a) : "); scanf("%d",&a); printf("Now enter the second number (b) : "); scanf("%d",&b); printf("Finally enter the third number (c) : "); scanf("%d",&c); if ((a > b) && (a > c)) printf("\nThe largest number is 'a' i.e. %d",a); else if (b > c) printf("\nThe largest number is 'b' i.e. %d",b); else printf("\nThe largest number is 'c' i.e. %d",c); printf("\n\nPress any key to exit..."); getch(); }