Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main()
- {
- int a, b;
- cout<<" ________________________________ "<<endl;
- cout<<" | | "<<endl;
- cout<<" | NESTED LOOP THEERE | "<<endl;
- cout<<" |________________________________| "<<endl;
- cout<<" "<<endl;
- for (a=7; a >= 1; a--){
- for (b=a; b >= 1; b--){
- cout << (a-b) + 1;
- }
- cout << "\n";
- }
- }
- /**
- 1234567
- 123456
- 12345
- 1234
- 123
- 12
- 1
- **/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement