SlideShare a Scribd company logo
1 of 5
Assignment of computer science 
Submitted 
By 
Asma Saleem 
Roll no (17) 
Submitted 
to 
Shoaib Farooq (sahb) 
(Bs honour) 3rd semester Replica 
Department Geography 
(University of the Punjab Lahore)
<html> 
<body> 
<?php 
$i=2; 
while ($i<=20){ 
echo "$i <br>"; 
$i=$i+2; 
} 
</?> 
</html> 
</body>
<html> 
<body> 
<h1> 
<?php 
$fact=1; 
$no=4; 
while($no>=1){ 
$fact=$fact * $no; 
$no--; 
} 
echo"$no!=$fact" 
</?> 
</h1> 
</html> 
</bod>
<html> 
<body> 
<?php 
$i=1; 
while ($i<=20){ 
echo "$i <br>"; 
$i=$i+2; 
} 
</?> 
</html 
</body>
<html> 
<body> 
<h1> 
<?php 
$x=$_GET["sal"]; 
$y=$_GET["year"]; 
$i=1; 
while($i<=$y){ 
$x=$x+($x*0.12); 
$i++; 
} 
echo "salary after $y years $x"; 
?> 
</h1> 
</body> 
</html>

More Related Content

Viewers also liked

Dec 4 presentation
Dec 4 presentationDec 4 presentation
Dec 4 presentationvcoach
 
Bushwick studio pres final g-tedits10am_small
Bushwick studio pres   final g-tedits10am_smallBushwick studio pres   final g-tedits10am_small
Bushwick studio pres final g-tedits10am_smallvcoach
 
FNBE AUGUST 2014 ICI FINAL PROJECT
FNBE AUGUST 2014 ICI FINAL PROJECTFNBE AUGUST 2014 ICI FINAL PROJECT
FNBE AUGUST 2014 ICI FINAL PROJECTLucasssong
 
ArsitektureJaringan-13028-insan akbar hakiki
ArsitektureJaringan-13028-insan akbar hakikiArsitektureJaringan-13028-insan akbar hakiki
ArsitektureJaringan-13028-insan akbar hakikiInsan Sevenfoldism
 
CURRICULUM_VITAE_Daria_Zeynalnia
CURRICULUM_VITAE_Daria_ZeynalniaCURRICULUM_VITAE_Daria_Zeynalnia
CURRICULUM_VITAE_Daria_ZeynalniaDaria Zeynalnia
 
Clustering on database systems rkm
Clustering on database systems rkmClustering on database systems rkm
Clustering on database systems rkmVahid Mirjalili
 
DPSHIP BIODATA 1 (2)
DPSHIP BIODATA 1 (2)DPSHIP BIODATA 1 (2)
DPSHIP BIODATA 1 (2)Chris Felix
 
Large Scale Data Clustering: an overview
Large Scale Data Clustering: an overviewLarge Scale Data Clustering: an overview
Large Scale Data Clustering: an overviewVahid Mirjalili
 
ABHINAV KAUSHIK(IT Professional)
ABHINAV KAUSHIK(IT Professional)ABHINAV KAUSHIK(IT Professional)
ABHINAV KAUSHIK(IT Professional)Abhinav Kaushik
 

Viewers also liked (10)

Dec 4 presentation
Dec 4 presentationDec 4 presentation
Dec 4 presentation
 
Bushwick studio pres final g-tedits10am_small
Bushwick studio pres   final g-tedits10am_smallBushwick studio pres   final g-tedits10am_small
Bushwick studio pres final g-tedits10am_small
 
FNBE AUGUST 2014 ICI FINAL PROJECT
FNBE AUGUST 2014 ICI FINAL PROJECTFNBE AUGUST 2014 ICI FINAL PROJECT
FNBE AUGUST 2014 ICI FINAL PROJECT
 
Beyond TrueTime
Beyond TrueTimeBeyond TrueTime
Beyond TrueTime
 
ArsitektureJaringan-13028-insan akbar hakiki
ArsitektureJaringan-13028-insan akbar hakikiArsitektureJaringan-13028-insan akbar hakiki
ArsitektureJaringan-13028-insan akbar hakiki
 
CURRICULUM_VITAE_Daria_Zeynalnia
CURRICULUM_VITAE_Daria_ZeynalniaCURRICULUM_VITAE_Daria_Zeynalnia
CURRICULUM_VITAE_Daria_Zeynalnia
 
Clustering on database systems rkm
Clustering on database systems rkmClustering on database systems rkm
Clustering on database systems rkm
 
DPSHIP BIODATA 1 (2)
DPSHIP BIODATA 1 (2)DPSHIP BIODATA 1 (2)
DPSHIP BIODATA 1 (2)
 
Large Scale Data Clustering: an overview
Large Scale Data Clustering: an overviewLarge Scale Data Clustering: an overview
Large Scale Data Clustering: an overview
 
ABHINAV KAUSHIK(IT Professional)
ABHINAV KAUSHIK(IT Professional)ABHINAV KAUSHIK(IT Professional)
ABHINAV KAUSHIK(IT Professional)
 

Html

  • 1. Assignment of computer science Submitted By Asma Saleem Roll no (17) Submitted to Shoaib Farooq (sahb) (Bs honour) 3rd semester Replica Department Geography (University of the Punjab Lahore)
  • 2. <html> <body> <?php $i=2; while ($i<=20){ echo "$i <br>"; $i=$i+2; } </?> </html> </body>
  • 3. <html> <body> <h1> <?php $fact=1; $no=4; while($no>=1){ $fact=$fact * $no; $no--; } echo"$no!=$fact" </?> </h1> </html> </bod>
  • 4. <html> <body> <?php $i=1; while ($i<=20){ echo "$i <br>"; $i=$i+2; } </?> </html </body>
  • 5. <html> <body> <h1> <?php $x=$_GET["sal"]; $y=$_GET["year"]; $i=1; while($i<=$y){ $x=$x+($x*0.12); $i++; } echo "salary after $y years $x"; ?> </h1> </body> </html>