0

Table from 1 to 10 finding some error in output it it's priting some useless numbers between 1-3 instead of printing 2. Solve it

https://code.sololearn.com/cox8xarWN1i8/?ref=app

23rd Sep 2022, 3:11 PM
Venom
2 Respuestas
+ 2
This to replace with following code could help: printf("%d ",i*j);
23rd Sep 2022, 3:23 PM
JaScript
JaScript - avatar
+ 1
You have 2 %d for a single value i * j Do this printf("%d %d = %d\n",i, j, i * j); ------------- for(int i = 1; i <= 10; ++i) { for(int j = 1; j <= 10; ++j) { printf("%d %d = %d\n", i, j, i * j); } printf ("-----------\n"); }
23rd Sep 2022, 3:20 PM
A͢J
A͢J - avatar