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.
Jewelgalore offers a delightful collection of silver rings for girls . Explore our range of beautifully crafted pieces, perfect for adding a touch of elegance and charm to young girls' fashion
Shalamar Hospital, with the best skin specialist in Lahore , is committed to delivering top-quality dermatological care, prioritizing your skin's health and well-being.
Elevate your expertise with Osh University's postgraduate degree programs. As a leader in education, Osh offers a transformative learning experience, empowering individuals to excel in their chosen fields.
Consider using PHPs loop structures to calculate and display the squares of numbers. You can start with a loop that iterates through numbers from 1 squaring each one in the process.
Commercial Cleaning Company in Leander TX
For painting tasks with a lengthy lifespan, this is essential. For your particular property and weather conditions, our team would be delighted to offer assistance in choosing the ideal color and paint type. | exterior painting hamilton
if you want series of numbers which provided by user then here you go. #include<stdio.h> int square(int); int main() { int i=0; int n; printf ("Enter the number:"); scanf ("%d",&n); while(n) { if(i%2==0) { printf("%d ",square(i)); n--; } i++; } } int square(int i) { return i*i ; }
Website: octordle
<?php
function findSquare($start,$end){
/* 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
*/
array_map(function($n){
echo ($n*$n).' ';
},range($start,$end));
}
$start = 1;
$end = 10;
findSquare($start,$end);
?>
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