Untitled

twt
 avatar
unknown
c_cpp
a year ago
459 B
3
Indexable
#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 << '@';
            }
        }
    }
}
Editor is loading...