Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <vector>
- #include <algorithm>
- #include <cstdio>
- #include <math.h>
- using namespace std;
- int n;
- int main(int argc, const char * argv[]) {
- cin>>n;
- int b=n-1;
- int c=1;
- for (int i=1; i<=n;i++){
- for(int j=1; j<=b; j++){
- cout<<"0";
- }
- for(int d=1; d<=c; d++){
- cout<<"*";
- }
- c=c+1;
- b=b-1;
- cout<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement