Advertisement
labib24

Untitled

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