Homework 1: reformat task 2

This commit is contained in:
Inex Code 2020-09-12 06:56:28 +00:00
parent 8545ee6a75
commit e92805eb58

View file

@ -3,18 +3,25 @@
using namespace std; using namespace std;
void part1(uint N, uint M)
{
for (uint n = 0; n < N; n++)
{
for (uint m = 0; m < M; m++)
{
cout << "*";
}
cout << "\n";
}
cout << "\n";
}
int main() int main()
{ {
uint N = 5; uint N = 5;
uint M = 6; uint M = 6;
for (uint n = 0; n < N; n++) { part1(N, M);
for (uint m = 0; m < M; m++) {
cout << "*";
}
cout << "\n";
}
cout << "\n";
return 0; return 0;
} }