big
unknown
c_cpp
2 years ago
336 B
14
Indexable
#include <iostream>
#include <string>
using namespace std;
int main()
{
int a;
cin >> a;
for (int i = 0; i <= a; i++)
{
if (i == 0)
{
cout << "";
}
else if (i % 5 == 0)
{
cout << "@";
}
else if (i % 2 == 0)
{
cout << "*";
}
else
{
cout << "-";
}
}
return 0;
}Editor is loading...