Learn All Programming and Scripting languages inside Our Blog, learn all BCA, MCA, B.E.IT, B.E.CE programs here Our Youtube Channel: youtube.com/avadhtutor
SUM OF SERIES IN PHP
<?php
/* 1,4,9,16,25,36....n.*/
$a=1;
$b=0;
while($a<=10)
{
$b=$a*$a;
print"<br>".$b;
$a++;
}
?>
OUTPUT : 1,4,9,16,25,36
No comments:
Post a Comment