Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void Stroka(short n)// функция выводит на экран строку из n значений
- {
- for (short i = 1; i <= n; i++)
- cout << n;
- cout << endl;
- }
- void F(short n)
- {
- for (short i = 1; i <= n; ++i)//выводит n строк no i значений в каждой
- Stroka(i);
- }
- int main(){
- short n;
- cout << "n=";
- cin >> n;
- F(n);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment