Skip to main content

Posts

Showing posts with the label 13. Write a C program to find maximum between two numbers.

ads1

13. Write a C program to find maximum between two numbers.

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

ads2