Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int vvod();
- void vivod(int );
- int main()
- {
- vivod(vvod());
- }
- int vvod() {
- int z;
- cin >> z;
- return z;
- }
- void vivod( int z ){
- for (int d = 0; d < z; d++){
- for(int k = d; k+1 < z; k++) {
- cout << " ";
- }
- for( int f = 0; f < d+d+1; f++){
- cout << "*";
- }
- cout << endl;
- }
- for(int a = 1; a < z; a++) {
- cout << " ";
- }
- cout << "*";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement