Guest User

Untitled

a guest
Feb 22nd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(void)
  4. {
  5. int N,i,j,k;
  6. cin>>N;
  7. if(N>=1 || N<=100){
  8. for(i=0; i<N; i++){
  9.  
  10. for(k=0; k<i; k++)
  11. cout<<" ";
  12. for(j=2*i; j<(2*N)-1; j++)
  13. cout<<"*";
  14.  
  15. cout<<endl;
  16.  
  17. }
  18. }
  19. else
  20. return 0;
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment