Guest User

Untitled

a guest
Jul 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include
  2.  
  3. int main()
  4. {
  5. int a=0, b=0, c=0, d=0, e=0, f=0, counter=1;
  6. printf("a\tb\t!a\ta||b\ta&&b\ta^b\n");
  7. printf("----------------------------------------------\n");
  8. while(counter<=4)
  9. {
  10. c=!a;
  11. d=a||b;
  12. e=a&&b;
  13. f=a^b;
  14. printf("%i\t%i\t%i\t%i\t%i\t%i\t\n", a, b, c, d, e, f);
  15. while(a=0, b=1)
  16. {
  17. a++;
  18. }
  19. while(b=1)
  20. {
  21. b=b-2;
  22. }
  23. b++;
  24. counter++;
  25. }
  26. getchar();
  27. return 0;
  28. }
Add Comment
Please, Sign In to add comment