Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include
- int main()
- {
- int a=0, b=0, c=0, d=0, e=0, f=0, counter=1;
- printf("a\tb\t!a\ta||b\ta&&b\ta^b\n");
- printf("----------------------------------------------\n");
- while(counter<=4)
- {
- c=!a;
- d=a||b;
- e=a&&b;
- f=a^b;
- printf("%i\t%i\t%i\t%i\t%i\t%i\t\n", a, b, c, d, e, f);
- while(a=0, b=1)
- {
- a++;
- }
- while(b=1)
- {
- b=b-2;
- }
- b++;
- counter++;
- }
- getchar();
- return 0;
- }
Add Comment
Please, Sign In to add comment