kk258966

3/12 C++ 練習二

Mar 12th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void)
  4. {
  5.  
  6. int x=1,y=0;
  7. printf("x=%d",x);
  8. printf("y=%d\n",y);
  9. printf("1代表真,0代表假\n");
  10. printf("-----------------------\n");
  11. printf("x and y ==>%d\n",(x&&y));
  12. printf("x or y ===>%d\n",(x||y));
  13. printf("===================");
  14.     system("pause");
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment