C_31 Switch Statement In C | C Programming Tutorials
Вставка
- Опубліковано 11 січ 2021
- In this video, I have discussed the Switch Case in C with a flowchart and program.
Best C Programming Tutorials : • Programming in C
*******************************************
Connect & Contact Me:
My Second Channel Link: bit.ly/354n7C7
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*********************************************
More Playlists:
C++ Programming Tutorials: • Lec 1: How to Install ...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
#cprogramming #jennyslectures #programming #clanguage #switchcase
This ma'am is the best. She does so much for us. Love to her and her family and the little one.
Little one means ???
Kid h mam k??
lol little one , as if you are the father
How many members are skipping unacademy add
youtube pro usesers
Add --ad
❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
i know it's very difficult to make videos daily along with family and explain topics in detail
thank you mam for making these videos
i mean all of them that u made
🙏🙏🙏🙏 🙇🙇🙇🙇
i didn't go to a good college
but i found a teacher like you now i can learn all the concepts from your UA-cam channel🙏🙏
One of the best series of programming in C language ❤️❤️❤️❤️
Once this is finished can help us to create a live project using c++/c language it will help us for better understanding 🙏🏻
Mam you have been helping me too much with your videos.
The way you explain is very easy to understand i have only to say thank and ask you please don't stop making video such that, you may not know but your videos are very useful for us.
by the way i am from Mozambique
Excellent teaching skills u have mam that is understanding by everyone ❤️😍😍😍
maam please keep making videos and guiding us u are my only hope because only your lectures are understandable by me
Tq, u r giving complete crystal clear information.. 🙏
I love❤ this Sessions....... Thank you❤🌹 so much madam from bottom of my heart💖....... You are the only one in UA-cam▶️i always waiting⏳ for ur videos madam......... Ur hardworking never wastes😇....... My education🎓 is dedicated always for you mam🙃🥰
Really your all lecture are superb nd it helps more nd more to learn any concept in depth 👍👍so we thanks to you for making free content like this ❤️
But only one think is you miss that iss captions
Thank you so much mam...I understood it very clearly...🙏👍👍😇
Thank you mam ..
You are a god gift to me...
For cs tq mam
Ur explaining way Is just amazing. it helped me a lot in my studies
U re really an extraordinary teacher ....🥰😍
Mam I am fresher and I can understand teaching of only you but not of my college Teachers so thank you so much mam 💓
Thanks a lot for your help 🔥👍
I am learning so much from my beautiful teacher! Great video Ma!
We need to be very thankful to u mam ur lectures helped us a lot by gaining lots of knowledge on c language 🎉
I love you, ma'am, your teaching style is wonderful.
wow, i really love this particular session Thanks for the impact ma, you even explained much better than my lecturer, this will really help me in my forthcoming exam
Thank you very much ma'am for making this video. It helped me lot in my exam.❤❤
I watch your lectures and I try the programs by myself and I really get happy when I pass. I understand your lectures so well.
#include
main()
{
int marks;
printf("Enter marks ");
scanf("%d",&marks);
switch (marks/10)
{
case 10:
case 9:
case 8:
printf("Grade A");
break;
case 7:
printf("Grade B");
break;
case 6:
printf("Grade C");
break;
default: printf("Grade D");
}
}
That's wrong program, when you try to enter the marks. 9 the output is coming great d.
here is the correct program;---
#include
int main()
{
int a;
printf("Enter a value:");
scanf("%d",&a);
switch (a)
{
case 10:
case 9:
case 8:
printf("Grade A");
break;
case 7:
printf("Grade B");
break;
case 6:
printf("Grade C");
break;
default: printf("Grade D");
}
return 0;
}
mam pls check and tell... tq..
Both are correct
1 st code marks for 100 i.e;user would have to enter marks for 100
2nd code marks for 10
i.e; user would have to enter marks for 10
really such a great teacher god bless you🥰🥰
Thanks a lot ma'm ap ny c start kar di
Really bundles of thanks.
Ap ny dda start ki thi to mujhy lga c language skip kar di ap ny ab nhi parhaen gi
Again Thanks
Ma'am please finish this course as fast as possible I have a exam in next month
Same mam..... Please complete ....
code with harry sa kar la bro
Thank you so much mam 🔥🔥🔥
Perfect Explaination
#include
int main()
{
int marks;
printf("Enter the marks out of 100 ");
scanf("%d",&marks);
switch(marks/10)
{
case 10:
case 9:
case 8:
printf("your grade is A");
break;
case 7:
printf("Your grade is B");
break;
case 6:
printf("Your grade is c");
break;
default: printf("your grade is d");
}
return 0;
}
marks/100 should be their in the place of expression
@@Shreyas_K1044 then it will show only default ...
Bro in case of 80 marks it have to print 'B' grade but according to your program it is printing 'A' grade
@@leelasaikrish1966 IT DOESNT MATTER ,,, LOGIC MATTERS ,,,, AND LOGIC IS TRUE...@attila6013
👍👍 true and logical
it works
Good explanation of Switch statement
YOUR TEACHIN STYLE IS WONDERFULL MA'M
Now I understand switch case thanks a lot mam
A thankful video 🥰😘
Thank you so much❤ mam🤗
jenny you are very much great
Thank u so much mam I understood clearly 🙏🙏
Very Well Explained Lectures
Thank Uh Mam❤
You are really superb mam
So nice explanation.
Love you Jenny😍😍😍
Mam in the program two it's just about vowel and consonant but if we enter any special character it will print as a consonant so how should we include in the switch statement...please explain mam
Your teaching is so good
Mam start c++ as next course 🙏🙏🙏🙏🙏🙏🙏
Is including default case is mandatory ?
I like your way of teaching maam thank u for spreading knowledge.
Mam ek dam accha se samaj aa gya switch in c
23:40
#include
#include
int main()
{
int marks;
printf("Enter your marks: ");
scanf("%d", &marks);
switch(marks){
case 80 ... 100:
printf("Grade A
", marks);
break;
case 70 ... 79:
printf("Grade B
", marks);
break;
case 60 ... 69:
printf("Grade C
", marks);
break;
case 35 ... 59:
printf("Grade D
", marks);
break;
default:
printf("You are failed
");
}
printf("Statement X
");
return 0;
}
super vroo 👏👏👏
👍
Why did you used the 3 dots in between 70 and 79 ?
@@bhukyabhanuprasad The "..." is called the range operator in C and is used to specify a continuous range of values. In this particular case, "case 80 ... 100" indicates that the code block following it will be executed if the expression being evaluated falls within the range from 80 to 100 (inclusive).
@@devSackey thanks isaac
After this c programming, kindly post videos on python programming also mam. As I understand clearly if you teach❤️❤️
Have you cleared the 'c' language?
Hii you are damn cute 💖
Awesome mam
Thankyou mam ❤️
Thanks ❤️mam
Watched and Understood ❤
The teaching in the video is wonderful and mam you are looking beautiful
Mam can we use for loop for case values
madam since we can only check equality , how can we do that task using switch?
Love u so much mam 💞 ( only in subject aspect )
😂😂
😹😹😹
super video mam
Mam in switch case why float values are not taking
Mam only single charactor use in this statement?
String charactor is not allowed?
22:09
code ↓
#include
int main(){
int marks;
printf("please enter your marks
");
scanf("%d",&marks);
switch(marks/10){
case 10:
case 9:
case 8: printf("you have got a A grade");
break;
case 7:printf("you have got a B grade");
break;
case 6:printf("you have got a C grade");
break;
default:printf("you have got a D grade");
}
return 0;
}
Thank you
If you are our cs teacher I come even sunday to class.
Please mam, when u start tuple calculus in DBMS,,,,,, please reply mam,,,🙏🙏🙏🙏
i learnt till arrays, im waiting for you to reach till there
What if we take case 1 and then again case 1 and putting two different statement in both cases, will both the cases run at input value 1 ?
In first case 1 if you don't write break;
Then it will check and execute next case i.e. next case 1.
Until and unless the control finds the break keyword, it will execute all the cases.
The moment control finds the break keyword, it will come out of the switch block statements and statement x would be executed(which is not part of the switch block statements but the part of the program.)
thank you mam
Does c takes default initialisation for variable?
Thnku ma'am literally thnx!!
you are amazing maam
Thnx mam
ma'am why will the other cases be executed if the value that we're getting from the expression isn't the same as that of the case value?
Firstly, the case which matches with the value we have entered will be executed. And if we doesn't specify break after the case, then all other cases would also be executed till it finds break keyword.
what would happen if we enter both same cases but printing values are different...then which case statement would it print?
The same cases will give you an error
Will u please make a video on C++ programming also
Waiting for more videos specially array
Can we write more than one statement under any case like case1: and within this multiple statements.
Yes
thank you very much mam you're smart c++ next please
Thankyou mam
You're an amazing teacher ma'am.your method of teaching helps to understand the topic very well.stay blessed always 🙏😊
super teacher
int main()
{
int marks;
coutmarks;
switch (marks)
{
case 81:
case 82:
case 83:
case 84:
case 85:
case 86:
case 87:
case 88:
case 89:
case 90:
cout
Ma'am please make video on recurrence relation in DAA
Mam switch(a=1) expression is wright or wrong
Mam can you help to count vowels in any sentence with the help of switch case please ??
Mam , after compiling, it's not entering a, e, i, o, u or anything. Enter ch is showing. And it's entering only numbers when i am typing. What problem i am facing in you program could you tell me please????
What to do if i want to run program like I/P -> Monday ..... Friday O/P -> Working day & I/P -> Saturday, sunday. O/P -> Holiday . PLEASE HELP ❤️
Mam ..then what will be the statement x ??
What will happen if I give continue instead break
Mam how to print when condition is >=360-firstclass
>=250-secondclass
Other wise third class mam
Pls just give me a hint mam..
Your teaching method is very nice mam so many video posted to the python java and c++ programs thank you mam🙏👌👌🥰
Keep it up
Mam you have said that float value cant be in switch statement but in grade problem we have to use (score/10) how can it happen
If the mark is 96 by dividing by 10 it give 9.6. Here it takes only integer part 9 and the result gets printed
madam excelent ur lectures and u r also so beautiful....tq madam.
Switch case statement and switch statement both are same or not
Here is my program. It satisfies all the cases.
int marks;
printf("enter marks:");
scanf("%d",&marks);
if (marks % 10 == 0) // If marks multiple of 10, then remove 1 from the marks. If you need to print the marks, use another variable to keep track of the real marks.
marks = marks - 1;
switch (marks/10)
{
case 10:
case 9:
case 8:
printf("grade A");
break;
case 7:
printf("grade B");
break;
case 6:
printf("grade C");
break;
default:
printf("grade D");
}
Great thinking
If we enter caps is that an vowel
how can we write the last example in switch case mam please explain
Mam..even AEIOU are also considering as vowels..then y didn't u take them as vowels..pls clear my doubt madam
Mam please give notes for entire c programming pdf please mam💚🙏
tq mam