please take a look at my program:
it does fine on first try but after the first looping of the code it does something unnecessary and i don't know why it does that.
if( strcmp(cmd_wrds,"MAKE") == 0 ) make();
if (matrix_name == 'A') v=0;
else if (matrix_name == 'B') v=1;
else if (matrix_name == 'C') v=2;
printf("Enter number of rows: ");
printf("Enter number of columns: ");
printf("%c[%d][%d] = ",matrix_name,i,j);
it's like this:
what seems to be the problem?
Enter number of rows: 2
Enter number of columns: 2
A = 1
A = 2
A = 3
A = 4
>> //this is what i'm talking about, it should only show once before asking for another command
by the way, the program still works fine after the first loop, i think, it's just that ">>" that's bothering me. where did it came from?
thanks to those who'll help!