Untitled

Anonymous
plain_text
10/18/2023 3:35 PM
476 B
15
Indexable
#include <iostream>
using namespace std;

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

}
Editor is loading...