hopingsteam

Untitled

Jan 30th, 2020
140
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include    <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a = 5;
  8.     a = a + 2;  // 7
  9.     a += 2;     // 7
  10.  
  11.     b = 121 % 10; // % - restul impartirii lui x la y
  12.                   // pt orice nr x, (x % 10) - ia ultima cifra
  13.    
  14.     b = 121 / 10; // = 12 (impartire fara rest)
  15.     b = 10 * 10; // inmultire
  16.  
  17.     //if()
  18.  
  19.     //else()
  20.  
  21.     //while()
  22.     return 0;
  23. }
RAW Paste Data