0
Someone help me with a php functiin that can print the multiplication table of all numbers say 1-10 ..
5 odpowiedzi
+ 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.
+ 3
I think this should be good enough modify it to your needs.
https://code.sololearn.com/w24VV64WCIKk/?ref=app
+ 1
Can you show us your attempts?
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 .
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>";