Advertisement
Gargit

Conditional Statements Exercises Part 1

Jul 30th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. void main()
  4. {
  5.     int y = 0;
  6.     int x = 1;
  7.     if (y == 0)
  8.     {
  9.         x = 100;
  10.     }
  11.     std::cout << "X = " << x << std::endl;
  12.  
  13.     system("pause");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement