akbarbasya26

nloop1

Nov 23rd, 2019
163
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=1; a <= 8; a++){
  10. for (b=1; b <= a; b++){
  11. cout << a;
  12. }
  13.  
  14. cout << "\n";
  15. }
  16. }
  17.  
  18. /**
  19. 1
  20. 22
  21. 333
  22. 4444
  23. 55555
  24. 666666
  25. 7777777
  26. 88888888
  27. **/
RAW Paste Data