Untitled
Anonymous
plain_text
10/19/2023 8:29 AM
412 B
18
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...