#include int main(){ int cmd; printf("Insert command: "); scanf("%d", &cmd); if(cmd==2) printf("Down\n"); else if(cmd==8) printf("Up\n"); else if(cmd==4) printf("Left\n"); else if(cmd==6) printf("Right\n"); else printf("ERROR: incorrect command!\n"); return 0; }