akbarbasya26

nloop2

Nov 23rd, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. main()
  6. {
  7. int a, b;
  8.  
  9. for (a=1; a <= 8; a++){
  10. for (b=a; b <= 8; b++){
  11. cout << a;
  12. }
  13.  
  14. cout << "\n";
  15. }
  16. }
  17.  
  18. /**
  19. 11111111
  20. 2222222
  21. 333333
  22. 44444
  23. 5555
  24. 666
  25. 77
  26. 8
  27. **/
Add Comment
Please, Sign In to add comment