hahaha
#include<iostream>
#include<conio.h>
#include<windows.h>
#define LEFT 75
#define RIGHT 77
using namespace std;
int a, b;
void start() {
cin >> a;
if (a < 1) {
"wrong value";
}
b = 1;
}
void draw() {
system("cls");
for (int i = 0; i < a; ++i) {
if (i == b) {
cout << "ㅁ";
}
else {
cout << "=";
}
}
}
void logic() {
char key = _getch();
if (key == -32) {
key = _getch();
switch (key) {
case LEFT:
--b;
break;
case RIGHT:
++b;
break;
}
if (b >= a) {
--b;
}
if (b < 0) {
++b;
}
}
}
int main() {
start();
while (1) {
draw();
logic();
}
}