#include<iostream>
using namespace std;
void show(int N)
{
for (int i = 0; i < N; i++)
cout << "-";
cout << endl;
}
void main()
setlocale(LC_ALL, "rus");
int N;
cout << "Введите N: ";
cin >> N;
show(N);
system("pause");
#include<iostream>
using namespace std;
void show(int N)
{
for (int i = 0; i < N; i++)
cout << "-";
cout << endl;
}
void main()
{
setlocale(LC_ALL, "rus");
int N;
cout << "Введите N: ";
cin >> N;
show(N);
system("pause");
}