Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5. //Program qe ngre nje numer ne fuqi te trete.
  6. int main()
  7. {
  8. int baza;
  9. int rezultati; // kjo duhet inicializuar me 1
  10.  
  11. cout << "Fut bazen: ";
  12. cin >> baza;
  13.  
  14. for(int i = 0; i < 3; i++)
  15. {
  16. rezultati = rezultati * baza;
  17. }
  18.  
  19. cout << "Rezultati eshte: " << rezultati << endl;
  20. system("pause");
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement