Advertisement
TheWhiteFang

[C++][6] if statements

Oct 7th, 2014
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream> //pre-processor directive
  2.  
  3. using namespace std; //std library
  4.  
  5. int main() //it starts with the main 1st
  6. {
  7.     int a = 98;
  8.     int b = 77;
  9.  
  10.     if(a > b){ // >, <, >=, =<, ==, != //if true it will print out text
  11.         cout << "boom boom";
  12.  
  13.     }
  14.  
  15.  
  16.     return 0; //to tell that program ran fine
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement