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