Advertisement
labib24

Untitled

Jan 13th, 2023
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b,c;
  5.     printf("1st number\n");
  6.     scanf("%d",&a);
  7.     printf("2nd number \n");
  8.     scanf("%d",&b);
  9.     printf("3rd number \n");
  10.     scanf("%d",&c);
  11.     if(a>b && a>c)
  12.     {
  13.         printf("The 1st is the largest number\n");
  14.     }
  15.     if(c>b && c>a)
  16.     {
  17.         printf("The 3rd number is the largest number\n");
  18.     }
  19.  
  20.     else
  21.     {
  22.         printf("The 2nd number is the largest number");
  23.     }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement