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;
- if(N>=1 || N<=100){
- for(i=0; i<N; i++){
- for(k=0; k<i; k++)
- cout<<" ";
- for(j=2*i; j<(2*N)-1; j++)
- cout<<"*";
- cout<<endl;
- }
- }
- else
- return 0;
- return 0;
- }
Add Comment
Please, Sign In to add comment