Thanks a lot, mam!!!!! I am a 10th grader and I have IT classes, in school and we were learning c programming I missed a class in which nested if statement was taught...I forgot to ask my teacher and tomorrow is my exam!!!! Your explanation worked wonders for me...Thanks a ton!!!!
#include int main(){ int a,b,c; printf("Enter the three numbers:"); scanf("%d %d %d",&a,&b,&c); if(a>b) { if(a>c) printf("%d is largest",a); else printf("%d is largest",c); } else { if(b>c) printf("%d is largest",b); else printf("%d is largest",c); } return 0; }
@@babluranga1421 bro its too lengthy see use the logical and #include int main() { int a,b,c; printf("enter three numbers"); scanf("%d %d %d",&a,&b,&c); if (a>b && a>c) printf("%d is the greatest number",a); if (b>c && b>a) printf("%d is the greatest number",b); if (c>b && c>a) printf("%d is the greatest number",c);
Mam u are genius I does not understand the matter of nested if statement. Then I watch your video. Even I confidently say that I understand the matter. Thank you so mach mam
//Write a C program to find maximum between three numbers. #include int main() { int a,b,c; a=b=c=0; printf("Enter 1st number: "); scanf("%d",&a); printf("Enter 2nd number: "); scanf("%d",&b); printf("Enter 3rd number: "); scanf("%d",&c); if(a>b) { if(a>c) { printf("%d is greater",a); } else { printf("%d is greater",c); } }
else
{ if(b>c) { printf("%d is greater",b); } else { printf("%d is greater",c); } } }
Thank you mam :) for your Efforts.... Love from Khammam..
Assignment work done ✅ void main() { float A, B, C; printf(“Enter three values ”); scanf(“%f %f %f ”,&A, &B, &C); printf(“ Largest value is:”); if(A > B) { if(A > C) printf(“%f ”,A); else printf(“%f ”,C); } else { if(C > B) printf(“%f ”,C); else printf(“%f ”,B); } } OUTPUT Enter three values: 5 8 24 Largest value is 24 😊😊✌️
//Edited://Task done mam! //Edited://Code for greatest among three no. by if and else. include void main(){ int a,b,c; printf("Enter your first no.="); scanf("%d",&a); printf("Enter your second no.="); scanf("%d",&b); printf("Enter your third no.="); scanf("%d",&c); if(a>b){ if(a>c){ printf("First no. is greatest "); } } else{ printf("First no. is smallest "); } if(b>a){ if(b>c){ printf("Second no. is greatest "); } } else{ printf("Second no. is smallest "); } if(c>a){ if(c>b){ printf("Third no. is greatest "); } } else{ printf("Third no. is smallest "); } }
That was great really to clear out my all confusions 😃. I prefer Everyone should learn from your channel. Lots of love from Balochistan❤. Thank you so much mam. God bless u ever. ❤❤
Hello ma'am this is quite useful series your videos are the best i have never seen before like this type of explanation of each topic And 1 question how many sweaters and jersies do you have ??
Ma'am thank you so much for such an amazing c language lectures.. You helped me a lot...😃 Thank you so much maam..❤ Maam plzz c++ ki playlist complete kr dejiye.. We are waiting...
Mam in these if we write two programs with logical "and" ooerator then if anyone is false then it directly goes to outer else ( don't go on inner else ) and but if we write both conditions seperately in two if manner then only we get inner else statement when inner if statement became false . Check this on 15:04 in your video you say wrong I think please make me correct if I wrong otherwise the correct video ❤️
Mam, when you have used same if for both conditions if the age condition is false i.e less than 50 then the salary will be incremented 5000 but it should be only 3000 know.
int main() { int a,b,c; printf("enter three numbers:"); scanf("%d %d %d",&a,&b,&c); if(a>b) { if(a>c) printf("a is the largest"); else printf("c is the largest"); } else printf("b is the largest"); }
#include Void main() { int a,b,c; Printf("Enter three numbers"); Scanf("%d%d%d",&a,&b,&c); If(b>a) { If(b>c) { Printf("The greatest number is b"); } Else { Printf("The greatest number is c"); } } Else If(a>b) { If(a>c) { Printf("The greatest number is a"); } Else { Printf("The greatest number is c"); } } }
madam if we use two conditions by using and operater in first if statement then what is the use of else in first parenthesis of if statements bcoz in first if statement is false it will jump to else after first parenthesis so pls can u clarify this ..
Dear madam is it possible to convert nested if else condition into ternary operator because we know ternary operator is one type of if else replica.. so if yes than plz requesting you to provide explanation in detail... Thanku and god bless 😊😊😊
Mam, for printing the updated salary like suppose 55000 if we enter the amount as 45000 , you haven't used printf for that updated salary hence output cannot be displayed on screen
first time in 5 years, I am getting most of my concepts clear. this series is awesome.
5 saal se first year me hai kya lamde
Really good
@@akshaychavan3597 hey brother what are you doing this time job or another work
@@AbhishekSahu-z1e yes, it's a job. Why do you ask ?
The help you have rendered with these videos knows no bounds. Thank you so much, Tutor Jenny
Thanks a lot, mam!!!!! I am a 10th grader and I have IT classes, in school and we were learning c programming I missed a class
in which nested if statement was taught...I forgot to ask my teacher and tomorrow is my exam!!!! Your explanation worked wonders for me...Thanks a ton!!!!
I never learnt any thing from my lectures every thing learnt from your videos thank you mam
#include
int main(){
int a,b,c;
printf("Enter the three numbers:");
scanf("%d %d %d",&a,&b,&c);
if(a>b)
{
if(a>c)
printf("%d is largest",a);
else
printf("%d is largest",c);
}
else
{
if(b>c)
printf("%d is largest",b);
else
printf("%d is largest",c);
}
return 0;
}
👍
perfact
Very good
Text book answer
@@babluranga1421 bro its too lengthy see use the logical and
#include
int main()
{
int a,b,c;
printf("enter three numbers");
scanf("%d %d %d",&a,&b,&c);
if (a>b && a>c)
printf("%d is the greatest number",a);
if (b>c && b>a)
printf("%d is the greatest number",b);
if (c>b && c>a)
printf("%d is the greatest number",c);
}
Mam I didn't even know what is c
But mam with the support of u I learnt every basics things about programs
✅Hey mam what is Lamba🤷😊
Thank you so much Jenny, you just simplify my cs50 course. This is so helpful and i love your traditional way of teaching.
Mam u are genius I does not understand the matter of nested if statement. Then I watch your video. Even I confidently say that I understand the matter. Thank you so mach mam
the best tutor in the world, God bless u dear Jenny
U usually gives explanation with ur heart core thanks mam
Mam you are Explanation is Good on c-programming i am easily understand that concept Nested if Thank you mam you are teach very well.
You are very experienced teacher so good teaching thank you ma'am.
its for beginner what about advance Maam
your teaching method is supper say bahot uper.
//Write a C program to find maximum between three numbers.
#include
int main()
{
int a,b,c;
a=b=c=0;
printf("Enter 1st number: ");
scanf("%d",&a);
printf("Enter 2nd number: ");
scanf("%d",&b);
printf("Enter 3rd number: ");
scanf("%d",&c);
if(a>b)
{
if(a>c)
{
printf("%d is greater",a);
}
else
{
printf("%d is greater",c);
}
}
else
{
if(b>c)
{
printf("%d is greater",b);
}
else
{
printf("%d is greater",c);
}
}
}
Thank you mam :) for your Efforts....
Love from Khammam..
If(a>b)
{.
If(a>c)
{
printf("a is big");
}
else
{
printf("c is big")
}
}
else
{
prinf(" b is big")
}
@@SuganthiUmaMagesh bhai wrong hai tera agar tu b ko a se bada daal dega toh Tera program run hi nhi krega same mistake maine kiya hai
really u are good at programing i seen all vedios of u it is very use full to me
Me after lecture if i have doubts 💨🏃♂🏃♂ to jenny's lectures
anyways thanks so much🙏🙏🙏
Aoa Your Teaching Method is so good 👍
Assignment work done ✅
void main()
{
float A, B, C;
printf(“Enter three values
”);
scanf(“%f %f %f ”,&A, &B, &C);
printf(“
Largest value is:”);
if(A > B)
{
if(A > C)
printf(“%f
”,A);
else
printf(“%f
”,C);
}
else
{
if(C > B)
printf(“%f
”,C);
else
printf(“%f
”,B);
}
}
OUTPUT
Enter three values:
5 8 24
Largest value is 24
😊😊✌️
well thanks , i didn't know you can include if in else
Hihgly better explained more my Lecturer. thanks a lot Madam!
Your teaching technique is so great Mam.
Thank you ma'am for teaching in easy way
Let the three no. Be- A,B,C
If(A>B)
{If (A>C)
Printf("max of the three no. Is A");
Else if(B>A)
{If(B>C)
Printf("max is B");
Else
Printf("max is C");
//Edited://Task done mam!
//Edited://Code for greatest among three no. by if and else.
include
void main(){
int a,b,c;
printf("Enter your first no.=");
scanf("%d",&a);
printf("Enter your second no.=");
scanf("%d",&b);
printf("Enter your third no.=");
scanf("%d",&c);
if(a>b){
if(a>c){
printf("First no. is greatest
");
}
}
else{
printf("First no. is smallest
");
}
if(b>a){
if(b>c){
printf("Second no. is greatest
");
}
}
else{
printf("Second no. is smallest
");
}
if(c>a){
if(c>b){
printf("Third no. is greatest
");
}
}
else{
printf("Third no. is smallest
");
}
}
Your lectures are very helpful for us
SuperMarket example helps me to understand 🤗🤗
Awesome video, keep up the great work! :)
Watched and Understood ❤
Thanks tutor Jenny for the lectures
Thankyou aunty aab me pass hojaunga 😮
Maximum no program executed.
Thank ma'am for teaching this.
3 numbers,find maximum among 3 numbers using nested if
Wow! Mam,you are the best**⭐
That was great really to clear out my all confusions 😃. I prefer Everyone should learn from your channel. Lots of love from Balochistan❤. Thank you so much mam. God bless u ever. ❤❤
Your teaching method is very nice.if once set in mind your lectures it Can never forget.
And one more thing
ते fast writing चा आवाज खूप भारी दिलाय.😅😅
You are an Angel sent from heaven
Hello ma'am
this is quite useful series
your videos are the best i have never seen before like this type of explanation of each topic
And 1 question how many sweaters and jersies do you have ??
Thank you 😊💕 mam so much this solved my doubts you explained so good
Mam really you are awesome. I was struggling to get idea and you explained very simply 😊
Video starts at 2:35
Mam I had solved the assignment given by you to find maximum of two numbers
Happy that I did the assignment in two ways, if-else statement and with ternary operators, feels good.
semma
please send that program to me
Just learning c thx mam
❤ meet in jannah mam
Ma'am thank you so much for such an amazing c language lectures..
You helped me a lot...😃
Thank you so much maam..❤
Maam plzz c++ ki playlist complete kr dejiye..
We are waiting...
Ai Bata jin hausa
Thank u mam for thinking much about us
thankyou soo much mam !! your the best
Mam..your look ..your voice all are similar with Neha mam.....vedantu maths teacher ♥️
Mam in these if we write two programs with logical "and" ooerator then if anyone is false then it directly goes to outer else ( don't go on inner else ) and but if we write both conditions seperately in two if manner then only we get inner else statement when inner if statement became false . Check this on 15:04 in your video you say wrong I think please make me correct if I wrong otherwise the correct video ❤️
Yes I also got the same doubt.
Have you got the solution to it?
example was best
Thanks for clearing my doubt maam
Thank you Mam for ur awesome teaching
Mam, when you have used same if for both conditions if the age condition is false i.e less than 50 then the salary will be incremented 5000 but it should be only 3000 know.
Lec starts 2:33
Thanks from kashmir
Nice explain
Thank u mam.these videos r very helpful ...
I got the maximum among three numbers mam
Superb explanation 👍
Thanks madam hopes to join India soon
int main()
{
int a,b,c;
printf("enter three numbers:");
scanf("%d %d %d",&a,&b,&c);
if(a>b)
{
if(a>c)
printf("a is the largest");
else
printf("c is the largest");
}
else
printf("b is the largest");
}
its wrong bro
So nice explanation ❤️
I HAVE DONE THIS PROGRAM WITH ONE STATEMENT BY USING LOGICAL OPERATOR &&.
Mam you are incredible👍😍
Excellent 😊
#include
Void main()
{
int a,b,c;
Printf("Enter three numbers");
Scanf("%d%d%d",&a,&b,&c);
If(b>a)
{
If(b>c)
{
Printf("The greatest number is b");
}
Else
{
Printf("The greatest number is c");
}
}
Else
If(a>b)
{
If(a>c)
{
Printf("The greatest number is a");
}
Else
{
Printf("The greatest number is c");
}
}
}
Nice explanation ❤️❤️❤️👍👍👍
Thank you mam so much❤️❤️❤️❤️❤️😘😘😘
Ma'am please start classes on java programming language too 💙
It's amazing mam
Thnku so much 👍🏼👍🏼
If we write many conditions using logical and in if statement then it is not more called nested if right mam..?
Logical and one more condition
Thankyou mam ❤️❤️
If. We will do it on 16 bit compiler the output of program will be unpredictable as we are using salary as int.
Excellent
Your videos are awesome 🥂🌈
Really good 👍
Thank u so much maam
Explain the condition 2 what if it is false and if there is any local variable how is the control flow
I
will solve it
Woww nice explanation
Great work mam
Thankkkkkk youuuuu mammmmm😭❤️🥹
Thankyou thankyou very much!!!$$
madam if we use two conditions by using and operater in first if statement then what is the use of else in first parenthesis of if statements bcoz in first if statement is false it will jump to else after first parenthesis so pls can u clarify this ..
Great..
leaps are in motion ocean to ocean to ocean
Great effort maaaaaammmm
challenge accepted
I will try my best
Amazing ❤❤
I need notes
Printf("madam is beautiful ") ;
😂
Dear madam is it possible to convert nested if else condition into ternary operator because we know ternary operator is one type of if else replica.. so if yes than plz requesting you to provide explanation in detail... Thanku and god bless 😊😊😊
mam favourite fruit is chinu
Mam, for printing the updated salary like suppose 55000 if we enter the amount as 45000 , you haven't used printf for that updated salary hence output cannot be displayed on screen
thanks
top class
mam in this programme you have forgoted to write
salary=salary+X;
printf("%d is the salary",salary);
can we use else if to write a program to find greatest of 3 numbers
🔥🔥🔥