Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Draw a diagonal line of stars on terminal/stdout
- for (int i=0; i<max_row;i++) {
- for (int j=0; j<(i-1); j++) {
- cout << " ";
- }
- cout << "*" << endl;
- }Draw a diagonal line of stars on terminal/stdout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement