Advertisement
Guest User

number 4

a guest
Oct 14th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int number;
  8. number = 10;
  9. for (int x = 0; x <= number; ++x)
  10. {
  11. if (x != 0)
  12. {
  13. for (int z = 1; z <= number; ++z)
  14. {
  15. if (z*x <= 9)
  16. {
  17. cout << " " << z*x;
  18. }
  19. else if (z*x > 9 && z*x <= 100)
  20. {
  21. cout << " " << z*x ;
  22. }
  23. else if (z*x > 99 && z*x <= 999)
  24. {
  25. cout << " " << z*x ;
  26. }
  27. }
  28. cout << "\n";
  29. for (int y = 0; y <= number; ++y)
  30. {
  31. if (y== 0)
  32. {
  33. cout << "";
  34. }
  35. else
  36. {
  37. cout << "";
  38. }
  39. }
  40. cout << "\n";
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement