Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- int n;
- int e = 0;
- cin>>n;
- for(int i = 1; i <= n; i++){
- for(int j = n; j >= i; j--){
- cout<<" ";
- }
- for(int b = 0; b <= e; b++){
- cout<<"*";
- }
- cout<<endl;
- e =e + 2;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment