mery payry bhai ya code thora galt ha ku k ap keh rehy hoo k agr age 18 say less ha to teeager ha butt agr age is greater then 18 then ya adult ha to is trha else wli condtion to check e nai hoo gi ap ko adult k liay bhe age set kerna pary gi otherwise its wrong ya phr ap aisa kerain k adult k liay age
if ($age < 5) { echo "You are kids"; } elseif ($age < 20) { echo "You are Teenager"; } elseif ($age < 40) { echo "You are Young"; } elseif ($age < 60) { echo "You are Adult"; } else{ echo 'god knows'; } this was your homework this homework was very easy I love your videos........................
Guys.. comment section pr batawo human life ka by comparing Age aap kaise Program likhoge..
$age = 20;
if ($age
mery payry bhai ya code thora galt ha ku k ap keh rehy hoo k agr age 18 say less ha to teeager ha butt agr age is greater then
18 then ya adult ha to is trha else wli condtion to check e nai hoo gi ap ko adult k liay bhe age set kerna pary gi otherwise its wrong ya phr ap aisa kerain k adult k liay age
$age ;
if ($age
if ($age < 13) {
echo "You are kids";
}
elseif ($age < 20) {
echo "You are Teenager";
}
elseif ($age < 40) {
echo "You are Young";
}
elseif ($age < 60) {
echo "You are Adult";
}
else{
echo "You are old";
}
If a user write his age 20 then which statement will execute as 20 is less than 40 also less than 60.
@@satishshah3861 If user write his age is 20 less than 40 will executed
Because 20 is less than 40 not less than 20
here is a problem in this code
If use enter a nagitive value
@@joebidenindiawale6326 AGE is never negative
Variable
if ($age < 5) {
echo "You are kids";
}
elseif ($age < 20) {
echo "You are Teenager";
}
elseif ($age < 40) {
echo "You are Young";
}
elseif ($age < 60) {
echo "You are Adult";
}
else{
echo 'god knows';
} this was your homework this homework was very easy I love your videos........................
Your videos are too amazing and understandable sir......Just wow.
oooo sir awesome video
Great work bhai ✌🏻👏🏻
please make video on complete oops concept also
can you take this example for solving my problem positive negative or zero can u show this in if elseif
osm
Sir what is difference between if_elseif_else and Nested_if
Please sir make a video for Nested_if
Please also Make for
' ?: ' Condition
Thanks Sir
Osm
Sir plz make vdo on oops concepts
oxm ....
nice brooo
Sure I will write sir
Here is I solved task let me know if I did correctly or is there any fault (made mistake
) Thanks for PHP Course :)
bhai suppose age is 30 soo what do you think is he baby, child ? ya both sahi he
TASK
$age = 24;
if ($age < 10) {
echo "you are kid";
}elseif ($age < 17) {
echo "you are child";
}elseif ($age < 25) {
echo "you are younger";
}
else{
echo "you are old age";
}
Syntax : -
$age = 19;
if($age
$age=31;
if ($age
This is Task
// $age = 20;
// if ($age
$age = 10;
if($age
for checking age
$age = 5;
if ($age
if($age
$age = 425;
if($age
$age = 13;
if ($age60 ) {
echo "You are an Elderly Person.";
}
sir, i worte that code, and it says syntax error, please let me know, where i am dumb, $Age = 10;
#as per the Vinod task this is the way to do it
"your Teenager" should be your output
@@toxicgamingzrk what do you mean
first attempt mein hi mein na sahi likh lia hai
$_ages = 31;
if ($_ages
Php abhi seekh rahe ho
//Sir u r great love from Pakistan
$age = 89;
if ($age >= 1 && $age = 6 && $age = 14 && $age = 21 && $age = 50 && $age = 86 && $age
Dai aja hami LA qbasic padam computer.
school ma basic padako baneiko hora bro
@@ThapaTechnical ho.
School ma
$age=10;
if ($age < 13) {
echo "You are kids";
}
elseif ($age < 20) {
echo "You are Teenager";
}
elseif ($age < 40) {
echo "You are Young";
}
elseif ($age < 60) {
echo "You are Adult";
}
else{
echo "You are old";
}
$age = 31;
if ($age
if ($age < 13) {
echo "You are kids";
}
elseif ($age < 20) {
echo "You are Teenager";
}
elseif ($age < 40) {
echo "You are Young";
}
elseif ($age < 60) {
echo "You are Adult";
}
else{
echo "You are old";
}
COPIED
if ($age < 13) {
echo "You are kids";
}
elseif ($age < 20) {
echo "You are Teenager";
}
elseif ($age < 40) {
echo "You are Young";
}
elseif ($age < 60) {
echo "You are Adult";
}
else{
echo "You are old";
}
if ($age < 13) {
echo "You are kids";
}
elseif ($age < 20) {
echo "You are Teenager";
}
elseif ($age < 40) {
echo "You are Young";
}
elseif ($age < 60) {
echo "You are Adult";
}
else{
echo "You are old";
}