helsinki2103

PRF192 Lab03 2

May 18th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.66 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. int main()
  5. {
  6.     int a = 5, b = 6, c = 7;
  7.     printf("int a = 5, b = 6, c = 7;\n");
  8.     printf("The value of a > b is:\t %i \n\n",a > b);
  9.     printf("The value of b < c is:\t %i \n\n",b < c);
  10.     printf("The value of a + b >= c is:\t %i \n\n",a + b >= c);
  11.     printf("The value of a - b <= b is:\t %i \n\n",a - b <= b);
  12.     printf("The value of b - a = b - c is:\t %i \n\n",b - a == b - c);
  13.     printf("The value of a * b != c * c is:\t %i \n\n",a * b != c * c);
  14.     printf("Result of a > 10 && b < 5 = %d \n\n",a > 10 && b < 5);
  15.     printf("Result of a > 100 || b < 50 = %d \n\n",a > 100 || b < 50);
  16.  
  17.     return 0;
  18. }
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment