20:10 when age=28, output: Your age is 28. It's time to go home when age =16, output: Your age is 16 It's time to go home when age=14 It's time to go home
i need a buddy who is also watching the playlist now !!. Amazing work mam you are blessed with your teaching skills your hardwork could be clearly seen while teaching that you have done as a student
I am wathing from Portugal.. I tried CS50, and could not get as a beginner but when i got your lectures its like complete C learning Thanks again and more power
21:43 Enter age :28 Your age is 28 .you can go coffee with me. Your age is 28. It's time to go home Enter age :16 You can go coffee with me Your age is 16. it's time to go home. Enter age : 14 You can go coffee with me. It's time to go home.
in the first input age =28 your age is 28 you can go coffee with me your age is 28 it's time to go home for input Age=16 you can go coffee with me your age is 16 it's time to go home for input Age =14 you can go coffee with me it's time to go home
@@Amruthagaddi-d4i you can go to coffee with me will get printed because there are no curly braces present,,so if will control only single statement,the one after if
21:42 /*for 28 your age is 28 you can go coffee with me your age is 28 its time ti go home for 16 you can go coffee with me your age is 16 Its time to go home for 14 you can go coffee with me Its time to go home*/
Assingment answers : (i) for age = 28 1st and 2nd both if blocks would be printed (ii) for age = 16 2nd if block will be printed (iii) for age = 14 no if blocks would be printed, only last sentence would be printed.
Wrong...see there is no curly brackets{} ... So in (i.) All statements will be executed (ii.)1st statements will not executed, but remaining 3 will be executed (iii.)1st and 3rd statements will not be executed but remaining 2nd and 4th statements will be executed
16:55 when age is 20 the if statement will not be executed. As there are no {} for if block the output will be : You can go for coffee with me Its time to go home 21:40 When age is 28 : Enter age = 28 Your age is 28 You can go for coffee with me Your age is 28 Its time to go home When age is 16 : Enter age = 16 You can go for coffee with me Your age is 16 Its time to go home When age is 14 : You can go for coffee with me Its time to go home
1)For age : 28 Output: Your age is : 28 You can go coffee with me It's time to go home 2)For age :16 Output: Your age is 16 It's time to go home 3))For age :14 Output: Your age is 16 It's time to go home
for age 20 : both blockes with be printed for age 16 :in first block only (u can go cooffe ... ) will bre printed because we have logical && and 16 >20 so first conditions is worng but second statment will be excuted becuase we have no curly bracets and both statments in second block will be printed for age 14 : second statment in block 1 and second statment in block 2
1. Without curly braces, output will be You can go coffee with me Its time to go home 2. If age is 28: Your age is 28 You can go coffee with me Its time to go home If age is 16: Your age is 16 Its time to go home If age is 14: Its time to go home
Output Without curly braces You can go coffee with me It's time to go home //It would not print your age is=x for numbers less or equal to 20 as it's part of if statement. Only the last two statements will be executed for numbers less than 20
19:54 IF AGE IS: 28 YOUR AGE IS: 28 YOU CAN GO COFFEE WITH ME YOUR AGE IS: 28 YOU CAN GO HOME IF AGE IS: 16 YOU CAN GO COFFEE WITH ME YOUR AGE IS: 16 YOU CAN GO HOME IF AGE IS: 14 YOU CAN GO COFFEE WITH ME YOU CAN GO HOME
if age is above 20, then all the four statements will be printed if age is above 15, then three statements: you can go coffee with me,age and its time to go home will be printed if age is 14, then both the age statements will no be printed and except the other two statements : you can go coffee with me and its time to go home will be printed. Means only kids under 15 will be entairtained and will enjoy the most.
Output for age 28 >> Enter age : 28 Your age : 28 Yes you can go coffee with me Your age is 28 It's time to go home Output for age 16 >> Enter age : 16 Your age : 16 It's a time to go home Output for age 14>> Enter age : 14 (Basically program ends here)
int main{ int age; printf("enter age"); scanf("%d",&age); if(age>20) printf("age is =%d ",age); printf("you can go coffe with me"); printf("its time to go"); return 0; } output enter age 20 you can go coffe with me its time to go
Case 1 For age 28: Output: Your age is 28 You can come to coffe with me You age is 28 You can go home. Case 2 For age=14 Output: You can come to coffe with me You can go home. Case 3 For age:16 Output: You can come to coffee with me Your age is 16 You can go home....
If no brace and you enter above 20, it will print the 'ag'e and the 'coffee with me' and the 'time to go home' if no brace and you enter below 20, it will print only 'coffee with me' and the 'time to go home'
if age is 28- enter age: 28 your age is 28 you can go coffee with me your age is 28 it's time to go home if age is 16- enter age: 16 you can go coffee with me your age is 16 it's time to go home if age is 14- enter age: 14 you can go coffee with me it's time to go home
void main() { int age; printf("enter age") ; scanf("%d", &age) ; if(! age) { printf ("You can go") ; } printf("you can come to office") ; getch() ; Output: enter age 0 You can goyou can come to office
input-28 output- Enter your age:28 Your age is:28 You can go coffee with me Your age is:28 Its time to go home input-16 output- Enter your age:16 You can go coffee with me Your age is:16 Its time to go home input-14 output- Enter your age:14 You can go coffee with me Its time to go home
28 age: All statements will execute
16 age: Last three statements will execute
14 age: You can go coffee with me and its time to go home will execute
your teaching style is so outstanding keep it up.Most of the students demanding a great teacher of computer and you are a best
20:10 when age=28, output:
Your age is 28.
It's time to go home
when age =16, output:
Your age is 16
It's time to go home
when age=14
It's time to go home
i need a buddy who is also watching the playlist now !!. Amazing work mam you are blessed with your teaching skills your hardwork could be clearly seen while teaching that you have done as a student
me
@@richieabbugamingff498 me as well
Here too
@@cheezaculturaltroupe.7337 me too
let us see who can complete playlist fastly and effectively
Hehe 🤭
watching the playlist from Ghana, West Africa . Thanks for the dedication.
I am wathing from Portugal.. I tried CS50, and could not get as a beginner but when i got your lectures its like complete C learning Thanks again and more power
thanks very much. definitely, you helped me with this course c programming language.
21:43
Enter age :28
Your age is 28 .you can go coffee with me.
Your age is 28. It's time to go home
Enter age :16
You can go coffee with me
Your age is 16. it's time to go home.
Enter age : 14
You can go coffee with me.
It's time to go home.
very good
in the first input age =28
your age is 28
you can go coffee with me
your age is 28
it's time to go home
for input Age=16
you can go coffee with me
your age is 16
it's time to go home
for input Age =14
you can go coffee with me
it's time to go home
correct
You can go coeffe with me will not excited for age 16&14 because (1620)
@@Amruthagaddi-d4i you can go to coffee with me will get printed because there are no curly braces present,,so if will control only single statement,the one after if
Superb the same answer is in my mind..😊
@@mayukhsen6910in the case of 16 & 14 you can go coffee with me is not printed
21:42
/*for 28
your age is 28
you can go coffee with me
your age is 28
its time ti go home
for 16
you can go coffee with me
your age is 16
Its time to go home
for 14
you can go coffee with me
Its time to go home*/
Right brdr✔️✔️
Yeah i too got the same op but i have a dbt is this crt???
Y because if oru age greater than 20means it should show one statement right why its showing all the statement
@@jeyaharinivj6378 you can go coffee with me and its time to go home donot come under if block because of no curly braces. Hope u got it.
Assingment answers :
(i) for age = 28
1st and 2nd both if blocks would be printed
(ii) for age = 16
2nd if block will be printed
(iii) for age = 14
no if blocks would be printed, only last sentence would be printed.
Wrong...see there is no curly brackets{}
... So in (i.) All statements will be executed (ii.)1st statements will not executed, but remaining 3 will be executed (iii.)1st and 3rd statements will not be executed but remaining 2nd and 4th statements will be executed
@@neeln7_147 curly braces are used only to print for a particular if statement all other conditions and statements.
@@neeln7_147 haa.. true
@@neeln7_147 will u plz menstion the statements in shortcut
@@silaganasneha9719 i have already written it in short, still if you want then tell me i would mention the exact output 😅
Starts at 2:49
16:55
when age is 20 the if statement will not be executed.
As there are no {} for if block the output will be :
You can go for coffee with me
Its time to go home
21:40
When age is 28 :
Enter age = 28
Your age is 28
You can go for coffee with me
Your age is 28
Its time to go home
When age is 16 :
Enter age = 16
You can go for coffee with me
Your age is 16
Its time to go home
When age is 14 :
You can go for coffee with me
Its time to go home
Ur wrong
When age is 16:
Enter age = 16
Its time to go home
Same applies for when age is 14
@@krishnapriya3872 NO, it's correct because in first IF statement { } are not mentioned
Yes it’s correct
hii mam this is a abhishek sahu
one of your student
mam i am very happy and delight to study with your channel
thank you mam for this unpaid video
Wow, thank you so Madam for adding another one!!!!!
U lucky boy getted a like from jeeny
So beautiful so elegant just teaching woww wow ,, when you look towards camera it feels like you are teaching me only 😂
Great video with good teaching style. I have watched lots of tutorials videos, non was as good as yours.
Your way of teaching is awesome ❤
Finally!!!!.....the video i wanted so badly !!!!
You and your explanation is so beautiful mam🌟
Aha
All doubts clear mam I am engineering student mam
Thank you 🙏
Are you a computer engineering student?
@@priyankapaul7077 no i am Mechanical student
@@pratikmarathe1118 ohh, do you have codings in mechanic engineerings?🤔
@@priyankapaul7077 no its just for knowledge about coding
@@pratikmarathe1118 Making knowledge is a good habit..👍🏼😁
When entered age = 25, it gives error
@21:44, age=28 prints all 4 lines | age=16, prints last 2 lines | age=14, prints nothing.
Mam You teach so clearly and we all get understood.
Also u looks cute and cool.
i impressed from your eyes.
Very nice mam . I am impressed with ur conduct .
I need more program on if, is very helpful
1)For age : 28
Output:
Your age is : 28
You can go coffee with me
It's time to go home
2)For age :16
Output:
Your age is 16
It's time to go home
3))For age :14
Output:
Your age is 16
It's time to go home
Mam can you please upload Graphs in data structure please make a video on this topic . thanks you so much mam best explained by you .
your an awesome teacher!!
I am little slow in English . But explanation of your mam is just awesome.
for age 20 : both blockes with be printed
for age 16 :in first block only (u can go cooffe ... ) will bre printed because we have logical && and 16 >20 so first conditions is worng but second statment will be excuted becuase we have no curly bracets and both statments in second block will be printed
for age 14 : second statment in block 1 and second statment in block 2
Condition is for equals to 20 or less than 20 .these numbers would be for true condition 1 ,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
Why all that numbers
Very good!! Even you're explaining the general mistakes that a student do'es🎉
Good teaching mam easily understandable
Lec starts at 2:50
Labaad😏
Very well explained video ma'am
Thanks for teaching c programming for free of cost❤
Great work done
Ma'am please upload videos of command line argument in c. ❤️❤️
IMP point at 13:06
Mam you are so best teacher in c programming
Mam thanks it's helpful for Cdac exam
1. Without curly braces, output will be
You can go coffee with me
Its time to go home
2. If age is 28:
Your age is 28
You can go coffee with me
Its time to go home
If age is 16:
Your age is 16
Its time to go home
If age is 14:
Its time to go home
Output Without curly braces
You can go coffee with me
It's time to go home
//It would not print your age is=x for numbers less or equal to 20 as it's part of if statement. Only the last two statements will be executed for numbers less than 20
Thank you soo much mam...Love from Pakistan🇵🇰🇵🇰🇵🇰❤💞❤💞
🥰
Nice teaching Mam
Thanks a lot Mam
Nice mam your teaching style 2 much differ.. 👍👍
Your voice is super and excellent teaching ❤🎉
Thanks You Mam for teaching us mam, can you make videoon java and c++..
Your lectures are so good ✨
For 28
Output: your age is:28 you can go coffee with me
Your age is 28 Its time to go home
For 16
Your age is 16 Its time to go home
For 14
Hayeee madam kyy muskann haiii 😘😘🥰🥰
Hlo Mam I m student of BCA from ranchi and ur classes are really helpful thanku mam u hv became my crush 💞
19:54
IF AGE IS: 28
YOUR AGE IS: 28
YOU CAN GO COFFEE WITH ME
YOUR AGE IS: 28
YOU CAN GO HOME
IF AGE IS: 16
YOU CAN GO COFFEE WITH ME
YOUR AGE IS: 16
YOU CAN GO HOME
IF AGE IS: 14
YOU CAN GO COFFEE WITH ME
YOU CAN GO HOME
14 print nothing and no error.
16 prints the last if code block.
But typing in 28 executes the first as well as second if block statement.
May be it will print(you can go home)
wrong run it on compiler then u will see ur mistake...
@@rachitparashar1243bhai oehla tu run krle techblaze sahi bol raha ha
if age is above 20, then all the four statements will be printed
if age is above 15, then three statements: you can go coffee with me,age and its time to go home will be printed
if age is 14, then both the age statements will no be printed and except the other two statements :
you can go coffee with me and its time to go home will be printed.
Means only kids under 15 will be entairtained and will enjoy the most.
Watched and Understood ❤
I've started writing if statement codes... so cool. I even started using else already 🤣
Thank❤ you so much 😊 mam. For explain
Nice explanation teacher
Love you
You are the best one ❤️❤️❤️
Thank u mam for giving great literature
I can understand very easy & u looking beautiful mam
Your lecture is wonderful mam , iam fan of u❤
Explain What is the control flow when there is switch case in nested if statements
Output for age 28 >>
Enter age : 28
Your age : 28
Yes you can go coffee with me
Your age is 28
It's time to go home
Output for age 16 >>
Enter age : 16
Your age : 16
It's a time to go home
Output for age 14>>
Enter age : 14
(Basically program ends here)
enter age: 14
I think it gives output -
You can go coffee with me
Its a time to go home
Because { } are not mentioned in two IF statements
@@rajIntrovert4150 sir I not getting your words can you please tell how this printed
@@crickyfire5621 should i tell u or u came to know by now?
i like the style you use in your lectures
I was waiting for this only mam.
Thankyou
This is called legend
thanks mam.... spectacular class... just subscribd your chanel 😎😊☺️
MADAM SIR MADAM ANTHE👌NICE
15:06 mam apko return 0; likhna tha if block ke second statement ke baad
That would make more sense😁
int main{
int age;
printf("enter age");
scanf("%d",&age);
if(age>20)
printf("age is =%d
",age);
printf("you can go coffe with me");
printf("its time to go");
return 0;
}
output
enter age 20
you can go coffe with me its time to go
printf ("NO BRO");
return0;
}
Please Upload video on lecture of Defined Functions
age 21: all the execute
age 20 without brackets: last two execute
age 13 with brackets: last one execute
Great detailed video 😊😊👍👍
Nice explanation madam
thankyou so much madam
Video start from 2:50
Case 1
For age 28:
Output:
Your age is 28
You can come to coffe with me
You age is 28
You can go home.
Case 2
For age=14
Output:
You can come to coffe with me
You can go home.
Case 3
For age:16
Output:
You can come to coffee with me
Your age is 16
You can go home....
Correct broh I too got same output while solving
@@iasaspirant1441 can u show me how to put a break in if condition and for loop in c is there any way
Sahi hai bhai
Checkout c conditional statements on our channel also
If no brace and you enter above 20, it will print the 'ag'e and the 'coffee with me' and the 'time to go home'
if no brace and you enter below 20, it will print only 'coffee with me' and the 'time to go home'
Ssss
Mam, definitely age is greater than 20 now let's go coffee😍
18:24 sure ma'am 😂
Well explained ma'am, thanks🙏
You are an awesome teacher mam😍
if age is 28-
enter age: 28
your age is 28
you can go coffee with me
your age is 28
it's time to go home
if age is 16-
enter age: 16
you can go coffee with me
your age is 16
it's time to go home
if age is 14-
enter age: 14
you can go coffee with me
it's time to go home
without { } also i can able to run the program.....wowwwwwww ...
U are teaching well mam
Thank you so ma'am 😁🌟
thankx u maam for such gud content
Very good explanation mam
void main()
{
int age;
printf("enter age") ;
scanf("%d", &age) ;
if(! age)
{
printf ("You can go") ;
}
printf("you can come to office") ;
getch() ;
Output:
enter age 0
You can goyou can come to office
Nice mam
I like (love) you mam and your teching also
18:05 to 18:15 to 18:18
input-28
output-
Enter your age:28
Your age is:28
You can go coffee with me
Your age is:28
Its time to go home
input-16
output-
Enter your age:16
You can go coffee with me
Your age is:16
Its time to go home
input-14
output-
Enter your age:14
You can go coffee with me
Its time to go home
its wrong
@@revanthkumar5119 why ?
input 16 there would print
" your age is 16
it's time to go home"
then input as 14
" It's time to go home"
@@sandman9999 for 14 it would be you can go coffee with me and then it's time to go home
"It's time to go home"
Love you mam ❤️❤️
wow mam you are the best. Thank you very
Excellent mam.i love you Jenny mamm 😘
Thanks mam ☺️
16:57 you can go coffee with me
Its time to go home .Both will be printed if we don't use { }.
Input:28
Output: your age is 28
You can go coffe with me
Input:16
Output:your age is 16
Go home
Input : 14
No output
16:53-output
ok we can go to coffee
Your child go to home
Crystal clear
Beautiful