Addition table? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Addition table?

Guys I tried everything but nothing happens. I cant create and addition table. I used 2 for loops, but cant combine them. like this 1 + 0 = up to 10 + 10 = 20. how to make it possible?

16th Jul 2017, 1:20 AM
Justin Codes
Justin Codes - avatar
2 Respostas
+ 6
for ($i = 0; $i < 11; $i++) //Counts 0 - 10 for first operand { for ($j = 0; $j < 11; $j++) //Count 0 - 10 for second operand { //Add $i and $j and output } }
16th Jul 2017, 1:58 AM
Tamra
Tamra - avatar
+ 1
thanks. i'll try
16th Jul 2017, 3:08 AM
Justin Codes
Justin Codes - avatar