prog.c: In function ‘main’:
prog.c:7:6: error: ‘n’ undeclared (first use in this function)
for(n= 1, n <= 10, n++) {
^
prog.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
prog.c:7:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for(n= 1, n <= 10, n++) {
^
prog.c:7:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for(n= 1, n <= 10, n++) {
^
prog.c:7:24: error: expected ‘;’ before ‘)’ token
for(n= 1, n <= 10, n++) {
^
prog.c:7:24: error: expected expression before ‘)’ token
prog.c:8:3: error: ‘tab’ undeclared (first use in this function)
tab = num * n
^~~
prog.c:9:3: error: expected ‘;’ before ‘print’
print("\n %d", tab);
^~~~~