Advertisement
touhid_xml

Condition and logical operator - lesson 2

Jul 7th, 2015
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3.  
  4.     int x;
  5.     x = 11;
  6.  
  7.  
  8.    /** if(x<5 && x<11){
  9.         printf("True\n");
  10.  
  11.     }else{
  12.           printf("False\n");
  13.     }
  14.     **/
  15.  
  16.     /***
  17.     if(!x){
  18.         printf("True\n");
  19.     }else{
  20.        printf("False\n");
  21.     } ****/
  22.  
  23.     if(x != 10){
  24.        printf("True\n");
  25.  
  26.     }else{
  27.         printf("False\n");
  28.     }
  29.  
  30.  
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement