Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 04 / Solutions / task5.cpp
blob: fc5552ef15ed0252baffc5538151363b9ef87cb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
using namespace std;
void print(const int N, const char S = ' ')
 {
     for (size_t i = 0; i < N; i++)
     {
         cout << S;
     }
 }

int main()
{
    int N;
    char S;
    cin >> N >> S;
    print(N);
    cout<< "Error!" << endl;
    print(N, S);
    return 0;
}