Advertisement
Mahmud33

the maximum between three numbers

May 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a, b, c;
  5.     printf("Enter the numbers: \n");
  6.     scanf("%d %d %d", &a, &b, &c);
  7.  
  8.     if(a>b && a>c){
  9.         printf("a is maximum");
  10.     }
  11.     else if(b>a && b>c){
  12.         printf("b is maximum");
  13.     }
  14.     else {
  15.         printf("C is maximum");
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement