Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main()
- { cout <<"wwedi chislo!!!";
- int b;
- cin >>b;
- int a=0;
- int t=0;
- int s=b;
- int f=0;
- int d=0;
- int e=0;
- while (a<b) {
- t=0;
- while (t<s) {cout <<" ";
- t=t+1;}s=s-1;
- f=0;
- while (f<=a) {cout <<"*";
- f=f+1;}
- e=0;
- while (e<a) {cout <<"*";
- e=e+1;}
- a=a+1; cout <<endl;}
- while (d<b) {cout <<" ";d=d+1;}cout <<"*";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement