#include "stdio.h"
//
int increaseindex(int num);
int decreaseindex(int num);
//matrix machine
//makes a 3 by 3 matrix and takes instructions for it.
int main(void) {
// Disable stdout buffering
setvbuf(stdout, NULL, _IONBF, 0);
int i, j;
int machine[3][3];
for(i=0;i<3;i++) for(j=0;j<3;j++) machine[i][j] = 0;
int x = 0;
int y = 0;
char instructions[10000];
printf("Give the Code:");
scanf("%s", instructions);
int r;
for(r=0;instructions[r]!='\0';r++) {
switch(instructions[r]) {
case '>': x += 1;
break;
case '<': x -= 1;
break;
}
}
return 0;
}
int increaseindex(int num) {
switch(num) {
case 0: return 1;
break;
case 1: return 2;
break;
case 2: return 0;
break;
}
}
int decreaseindex(int num) {
switch(num) {
case 0: return 2;
break;
case 1: return 0;
break;
case 2: return 1;
break;
}
}