Skip to main content

Posts

Showing posts with the label 2. Write a C program to find maximum between three numbers.

ads1

14. Write a C program to find maximum between three numbers.

 14. Write a C program to find maximum between three numbers. Solution :-  #include<stdio.h> #include<conio.h> void main() {     clrscr();     int a,b,c;     printf("Enter the First number :-");     scanf("%d",&a);     printf("Enter the Second number :-");     scanf("%d",&b);     printf("Enter the Third number :-");     scanf("%d",&c);     if((a>b)&&(a>c))     {         printf("%d The First number is Big");     }     else if(b>c)     {         printf("%d The Second number is Big ");     }     else     {         printf("%d The Third number is Big");     } getch(); } Output :-     

ads2