Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include <math.h>
  4. #include <limits.h>
  5.  
  6. void main()
  7. {
  8. /*
  9. == Равно
  10. != Не равно
  11. > Больше
  12. >= Больше или равно
  13. < Меньше
  14. <= Меньше или равно
  15. */
  16.  
  17. int a,b;
  18. printf("Please enter number: ");
  19. scanf("%d %d", &a , &b);
  20.  
  21. if (a > b)
  22. {
  23. printf("A is bigger!\n");
  24. }
  25. else if (a == b)
  26. {
  27. printf("A equal B!\n");
  28. }
  29. else
  30. printf("B is bigger!\n");
  31.  
  32.  
  33. if (a%2 == 0)
  34. {
  35. printf("A is EVEN!\n");
  36. }
  37. else
  38. {
  39. printf("A is ODD!\n");
  40. }
  41.  
  42.  
  43. printf("END PROGRAM\n");
  44. getch();
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement