Ahmed_Negm

Untitled

Dec 5th, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4. int n;
  5. int e = 0;
  6. cin>>n;
  7. for(int i = 1; i <= n; i++){
  8. for(int j = n; j >= i; j--){
  9. cout<<" ";
  10. }
  11. for(int b = 0; b <= e; b++){
  12. cout<<"*";
  13. }
  14. cout<<endl;
  15. e =e + 2;
  16. }
  17.  
  18.  
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment