Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int a;
- for (int j = 0; j < 3; j++)
- {
- do
- {
- cin >> a;
- } while (a < 0);
- cout << " " << endl;
- int counter = 1;
- while (a >= counter)
- {
- cout << " " << counter;
- counter++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement