Untitled
twtunknown
c_cpp
2 months ago
459 B
1
Indexable
Never
#include <iostream> #include <string> using namespace std; int main() { int a; cin >> a; for (int i = 1; i <= a; i++) { for (int i = 1; i <= a; i++) { if (i % 2 == 0 and i % 5 != 0) { cout << '*'; } if (i % 2 != 0 and j % 5 != 0) { cout << '-'; } if (i % 5 == 0) { cout << '@'; } } } }