Untitled
unknown
plain_text
a year ago
273 B
2
Indexable
Never
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 2 == 0 && i % 5 != 0) { cout << "*"; } else if (i % 5 == 0) { cout << "@"; } else if (i % 2 != 0 && i % 5 != 0) { cout << "-"; } } }