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;
- for (int j=1; j<=n ; j++) {
- for (int i=(n-j); i>0; i--) cout << "+";
- cout << "/";
- for (int i=(j-1); i>0; i--) cout << "*";
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment