Untitled
heuser_0563559
c_cpp
a year ago
490 B
1
Indexable
Never
#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 << '@'; } } } }