Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int number;
- number = 10;
- for (int x = 0; x <= number; ++x)
- {
- if (x != 0)
- {
- for (int z = 1; z <= number; ++z)
- {
- if (z*x <= 9)
- {
- cout << " " << z*x;
- }
- else if (z*x > 9 && z*x <= 100)
- {
- cout << " " << z*x ;
- }
- else if (z*x > 99 && z*x <= 999)
- {
- cout << " " << z*x ;
- }
- }
- cout << "\n";
- for (int y = 0; y <= number; ++y)
- {
- if (y== 0)
- {
- cout << "";
- }
- else
- {
- cout << "";
- }
- }
- cout << "\n";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement