Untitled
unknown
plain_text
2 years ago
309 B
11
Indexable
// домашка
#include <iostream>
using namespace std;
int main()
{
int a = 1;
while (a > 0) {
if (a % 5 == 0) {
a++;
cout << "@";
}
if (a % 2 == 0 && a % 5 != 0) {
cout << "*";
a++;
}
if (a % 2 != 0 && a % 5 != 0) {
cout << "-";
a++;
}
}
return 0;
}Editor is loading...