--- xes.old/src/xes.c +++ xes/src/xes.c @@ -39,33 +39,8 @@ } int main(){ - - char x; -START: - printf("\n"); - printf("----X EQUATION SOLVER----\n"); - printf("-----------------------\n"); - printf("Options: \n"); - printf("1.Solve a (n by n) system of linear equations\n"); - printf("2.About\n"); - printf("3.Quit\n"); - printf("Enter option: "); scanf("%c",&x); - get_garbage(); - while ( (x != '1') && (x != '2') && (x != '3') ) { - printf("Invalid option, re-enter: "); - scanf("%c",&x); - get_garbage(); - - } - switch (x) { - case '1': solver(); - break; - case '2': about(); - goto START; - break; - case '3': exit(1); - break; - } + printf("\n----X EQUATION SOLVER----\n\n"); + solver(); } void solver() {