how do we print square of numbers
How do we print square of numbers that is 1,4,9,16,25 and so on using php please reply thank you.
/* 1. Range will give you all
the numbers in between start and end.
2. The inbuilt function array_map will loop
through each element of that array and do the multiplication
echo ($n*$n).' ';
$start = 1;
$end = 10;
Thanks, it's working
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site