Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int num1 = 1;
  5. if (num1 != 1 || num1 == 0)
  6. {
  7. printf("The answer is false\n");}
  8.  
  9. else if (num1 != 1 || num1 && 0){
  10.  
  11. printf("The answer is false\n");}
  12.  
  13. else if (num1 != 1 && num1 == 0 || 0){
  14.  
  15. printf ("The answer is true\n");}
  16.  
  17. getchar();
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment