Guest User

Untitled

a guest
Feb 22nd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 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. for(i=0; i<N; i++){
  8. for(j=i; j<N-1; j++){
  9. cout<<" ";
  10. }
  11. for(k=N-i; k<N+1; k++){
  12. cout<<"*";
  13. }
  14. cout<<endl;}
  15. return 0;
  16. }
Add Comment
Please, Sign In to add comment