Untitled
twtunknown
c_cpp
2 years ago
459 B
6
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...