+ 1

What change need to get all tables in 1 code

means if i want to see table of 21 then I only have put input value 21 and then I will the table of 21. tell me what changes need to do to get this result https://code.sololearn.com/wOoLpcY2mnIz/?ref=app

16th Dec 2017, 5:55 PM
Vral Vyas
6 Answers
+ 4
I don't quite understand the question, anyway, if you still haven't solved this, can you explain a little more detail, what tables did you mean, what output you expected. Ignore this if you have solved this.
17th Dec 2017, 4:33 AM
Ipang
+ 3
<?php echo "hello sadia <br>"; // If you know value to multiply ($num) // you can divide $input with $num to // get $limit, a value upon which the // loop must stop. $num = 3; $input = 21; $limit = $input / $num; for($i = 1; $i <= $limit; $i++){ $z = $num * $i; echo "$num * $i = $z<br>"; } ?>
20th Dec 2017, 4:24 PM
Ipang
+ 3
Now I really don't understand your point, any number is a lot of possibilities...
21st Dec 2017, 2:31 AM
Ipang
+ 2
I am sorry, I thought you meant to limit the multiplication result to a number input :-D Do you mean to have 3 multiplied up to 23? 3 x 1 = 3 ............... 3 x 23 = 69 Is that what you're looking for? can you give a little illustration? maybe we can work it out?
20th Dec 2017, 5:25 PM
Ipang
+ 1
still ur not getting my point. what changes i need to 2 do if want 2 see all by putting input number . like if i input number 23 i will get table of 23. if u know tell. btw thanks 4 rply and gud try done by u👍👍👍
20th Dec 2017, 5:01 PM
Vral Vyas
0
no . i means I want to see any number multiplication by 1 code
21st Dec 2017, 1:43 AM
Vral Vyas