Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // imie i nazwisko :)
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- void funkcja(int v)
- { for(int i=1; i<=v; i++)
- {
- for(int j=1; j<=v-i; j++) cout<<" ";
- for(int m=v-i+2; m<=v+i; m++) cout<<"*";
- cout<<endl;
- }
- }
- int main ()
- { int n;
- cout<<"Podaj liczbe poziomow:";
- cin>>n;
- funkcja(n);
- system ("PAUSE");
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement