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


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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

+ ! ! ! ! !Marshmallow updated their profile
1 hour ago
Muhammad Bilal liked Mani Siddiqui BS VIII's discussion Heavy Raining in Karachi
2 hours ago
Farhan Malik is now a member of Virtual University of Pakistan
3 hours ago
Meϻøøήส liked + ! ! ! ! ! ! CS619's discussion CS619 Project
4 hours ago
Meϻøøήส liked Shanzay's discussion Hua To Kuch B Nahi...
4 hours ago
Meϻøøήส liked Shanzay's discussion Zikar Tera Meri Kahani Main..
4 hours ago
Meϻøøήส liked + Ḱẚảḿḯ's discussion Mohabbat
4 hours ago
Meϻøøήส liked + Ḱẚảḿḯ's discussion Dil
4 hours ago
Meϻøøήส liked + Ḱẚảḿḯ's discussion Mohabbat Ki Jhari
4 hours ago
Meϻøøήส liked Shanzay's discussion Nahii Karta...
4 hours ago
maheen mahan commented on +M.Tariq Malik's group MTH603 Numerical Analysis
5 hours ago
SARIM KHANI added a discussion to the group STA621 Time Series Analysis
6 hours ago

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

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

.