Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // lab_1.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- using namespace std;
- void kek(int amount)
- {
- if (amount == 0)
- {
- return;
- }
- int value = 0;
- cout << "enter value\n";
- cin >> value;
- kek(--amount);
- cout << value << "\n";
- }
- int main()
- {
- int amount = 0;
- cout << "enter amount\n";
- cin >> amount;
- kek(amount);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement