big
unknown
c_cpp
a year ago
336 B
1
Indexable
Never
#include <iostream> #include <string> using namespace std; int main() { int a; cin >> a; for (int i = 0; i <= a; i++) { if (i == 0) { cout << ""; } else if (i % 5 == 0) { cout << "@"; } else if (i % 2 == 0) { cout << "*"; } else { cout << "-"; } } return 0; }