0
I do not understand where is the error!!! Please help me
main() { int row, column, product[ROWS][COLUMNS]; int i,j; printf(" MULTIPLICATION TABLE\n\n"); printf(" "); for(j=1;j<= COLUMNS; j++) printf("M", j); printf("\n"); printf("\n"); for(i=0;i< ROWS; i++) } row = i + 1; //printf("- row"); for(j=1;j<= COLUMNS; j++); { column = j; product[i][j] = row column; printf("M", product[i][j]): printf("\n"); } return 0; }
2 Answers
+ 5
The errors are everywhere Amit !
No stdio header included to use printf
where ROWS and COLUMNS has defined?
what's purpose of printf("M",j)?
for loop block missed {
next for loop is empty
what is product[i][j]=row column?
statements must end in ; not :
return is outside main
extra } at the end.
what do you expect it to do?
I think you should have another look on C tutorial.
+ 1
Yes , you are right Tina ma'am , and now i will learn from some other tutorial c programming