-2
The following code returned error in execution. Could anyone tell me where the error is and how to fix it? From now on, thank you.
#!/usr/bin/perl
for ($i=1; $i<15; $i = $i + 1;){
for ($j=1; $j<15; $j = $j + 1;){
$multi = $i * $j;
print "$i X $j = $multi;\n";
}
}
What error? appears some message?
– rray
Similar ? : https://stackoverflow.com/questions/6181381/how-to-print-variables-in-perl
– Maury Developer
for ($i=1; $i<15; $i = $i + 1;){ for ($j=1; $j<15; $j = $j + 1;){ $multi = $i * $j; print "i*j = $multi /n"; } }
– Maury Developer
I don’t know much about perl syntax, it seems to be dots and commas left in the arguments... But the best thing to do is to learn how to interpret the error messages, follow the friend’s tip and put the message.
– MagicHat