JakubKaczmarek_123

z11

Dec 4th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. #include <string>
  4. using namespace std;
  5. int a;
  6. string b;
  7. int main(){
  8. cout << "podaj dlugosc boku trojkata: " << endl;
  9. cin >> a;
  10. for (int i = 0; i < a; i++){
  11. b += '*';
  12. cout << b << endl;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment