Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
344 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int n;
	int a;
	int b = 1;
	int m = 0;

	cin >> n;

	for (int i = 1; b <= n; b++) {
		cin >> a;
		m = m + 1;
		if (a % 2 == 0) {
			cout << "*";
		}
		if (m % 5 > 0) {
			if (a % 2 > 0) {
				cout << "-";
			}
		}
		if (m % 5 == 0) {
			cout << "@";
		}
	}
	}