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