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