Untitled
heuser_0563559
c_cpp
2 years ago
490 B
9
Indexable
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
int size;
cin >> size;
for (int a = 1; a <= size; a++) {
for (int b = 1; b <= size; b++) {
if (b % 2 == 0 and b % 5 != 0) {
cout << '*';
}
if (b % 2 != 0 and j % 5 != 0) {
cout << '-';
}
if (b % 5 == 0) {
cout << '@';
}
}
}
}Editor is loading...