Advertisement
XaskeL

T2-1

Oct 3rd, 2019
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <Windows.h>
  2. #include <iostream>
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7.     int a, b, c;
  8.     scanf("%d%d%d", &a, &b, &c);
  9.  
  10.     if (a > b)
  11.         if (a > c) printf("%d\n", a);
  12.         else printf("%d\n", c);
  13.     else
  14.         if (b > c) printf("%d\n", b);
  15.         else printf("%d\n", c);
  16.  
  17.     system("pause");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement