akbarbasya26

NLOOP3

Nov 23rd, 2019
161
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. main()
  6. {
  7. int a, b;
  8.  
  9. for (a=7; a >= 1; a--){
  10. for (b=a; b >= 1; b--){
  11. cout << (a-b) + 1;
  12. }
  13. cout << "\n";
  14. }
  15. }
  16.  
  17. /**
  18. 1234567
  19. 123456
  20. 12345
  21. 1234
  22. 123
  23. 12
  24. 1
  25. **/
RAW Paste Data