Advertisement
MeehoweCK

Untitled

Jul 31st, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a = 10;
  8.     int b = 15;
  9.     if(a < b)                                       // jeżeli warunek jest spełniony, zostaną wywołane wszystkie operacje z bloku
  10.     {
  11.         cout << "a jest mniejsze od b" << endl;
  12.         a = b;
  13.         cout << "od teraz a jest rowne b" << endl;
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement