0

Someone help me with a php functiin that can print the multiplication table of all numbers say 1-10 ..

7th Apr 2019, 9:56 PM
Frank Green
5 Antworten
+ 3
An awful attempt is better than no attempt, so it would be really nice of you to show it, so that we can show you how to build on top of your own efforts.
7th Apr 2019, 10:49 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
I think this should be good enough modify it to your needs. https://code.sololearn.com/w24VV64WCIKk/?ref=app
11th Apr 2019, 4:30 AM
Gursharan Singh
Gursharan Singh - avatar
+ 1
Can you show us your attempts?
7th Apr 2019, 10:31 PM
Hatsy Rei
Hatsy Rei - avatar
0
I did one,which seems awful,it's for only one integer which has a variable,now what I need is a function I can use to get the multiplication table for any number a user inputs .
7th Apr 2019, 10:38 PM
Frank Green
0
If(isset($_POST['math'])){ $f =$_POST['math']; Function table ($f,$d){ $e = $f * $d; Return $e; } For ($d = 1, $f<=10; $y++){ $display = table ($f,$y); Echo $f ."*".$d."=". $display."<br>";
8th Apr 2019, 7:44 AM
Frank Green