We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1059

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

<?php

echo"Please Select one Option\n\n";

echo"1-Draw Right Angle Triangle of asterisk(*)\n";
echo"2-Draw Pyramid of of asterisk(*)\n";
echo"3-Draw Reverse Pyramid of of asterisk(*)\n\n";

$option = true;

while($option == true)
{
echo"Enter Your Option: ";
$temp = fopen("php://stdin","r");
$line = fgets($temp);

if($line == 1)
{
for($i=1; $i <= 6; $i++)
{
for($j = 1; $j <= $i; $j++)
{
echo "* ";
}
echo"\n";
}
}
elseif($line == 2)
{
for($i=1; $i <= 6; $i++)
{
for($j = 6-$i; $j >= 1; $j--)
{
echo " ";
}
for($k = 1; $k <= $i; $k++)
{
echo"* ";
}
echo "\n";
}
}
elseif($line == 3)
{
for($i=6; $i >= 1; $i--)
{
for($j = 1; $j <= 6-$i; $j++)
{
echo " ";
}
for($k = 1; $k <= $i; $k++)
{
echo" *";
}
echo "\n";
}
}
else
{
$option = false;
}

}

?>

jazak ALLAH 

file ko .hp k extentn  sy save krna hy ye .bat sy ?

user se input kase ly ne ha?please  btye?  code work ni kar raha ha

Watch this:

You need to set php in path for executing php file in cmd.

if you not do this then php file won't be interpreted.

watch bellow video to set path 


great job bro

dear sir

sir jub main 1 enter karta hun tu us ka result nachi show nahi hota

great job bro

dear sir

sir jub main 1 enter karta hun tu us ka result nachi show nahi hota

Attachments:

ap koie mistake kr rhy hon gy video ka description mein group ka link ha wahn ien to apko guide kr dn ga mein 

cs310 assignment solution 

Solve whole assignment just in 4 minustes follow each step in the video

But i have a problem that my code isnt printing stars in any option

why it is like this

RSS

Latest Activity

Profile Iconrimsha pervaiz, Mumtaz Hussain and Saira Shahzad joined Virtual University of Pakistan
9 minutes ago
♦_"Tooba"_♦ liked +¢αяєℓєѕѕ gιяℓ's discussion xD.........................پرانی محبوبہ کے نام
22 minutes ago
+ M.Tariq Malik commented on ♦_"Tooba"_♦'s status
23 minutes ago
+¢αяєℓєѕѕ gιяℓ liked ♦_"Tooba"_♦'s discussion Guzri Howi Zindagi Ko Kabhi Yaad Na Kr
24 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to ♦_"Tooba"_♦'s discussion Guzri Howi Zindagi Ko Kabhi Yaad Na Kr
25 minutes ago
♦_"Tooba"_♦ posted a status
"Shikwa ye zulmat sey tho kahan behtar tha Apne hisse ke koi shama jalate jate…"
27 minutes ago
+¢αяєℓєѕѕ gιяℓ liked + M.Tariq Malik's discussion Follow the Main Forum & Study Groups New Added Discussions at Your Mail Address
38 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to + M.Tariq Malik's discussion Follow the Main Forum & Study Groups New Added Discussions at Your Mail Address
39 minutes ago
+¢αяєℓєѕѕ gιяℓ liked +¢αяєℓєѕѕ gιяℓ's discussion xD.........................پرانی محبوبہ کے نام
40 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion xD.........................پرانی محبوبہ کے نام
40 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion xD.........................پرانی محبوبہ کے نام
41 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Jin sey Mohabbat Ho.....
43 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Jin sey Mohabbat Ho.....
44 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Iss Mien Fail Karn wali Kon C baat thi xD
45 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Iss Mien Fail Karn wali Kon C baat thi xD
46 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Iss Mien Fail Karn wali Kon C baat thi xD
46 minutes ago
ϝ ι ყ α replied to +¢αяєℓєѕѕ gιяℓ's discussion Iss Mien Fail Karn wali Kon C baat thi xD
1 hour ago
ϝ ι ყ α replied to 彡JK彡 ❤️'s discussion Dedicated To All Fake IDs............ :p:p
1 hour ago
+!!!AAg❤️ replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Muhabato me li gaye kasmain
1 hour ago
Rehman liked ♦_"Tooba"_♦'s discussion Guzri Howi Zindagi Ko Kabhi Yaad Na Kr
1 hour ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service