C_41 Break statement in C | C Language Tutorials
HTML-код
- Опубликовано: 3 окт 2024
- In this lecture we will learn:
What is break statement in C?
How to use it?
Need of break statement
Working and Flowchart of break statement in C
C Programming Playlist: • Programming in C
*****************************************************
Connect & Contact Me:
Jenny's Lecture Hindi: / @jennyslectureshindi
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*****************************************************
More Playlists:
C++ Tutorials for beginners: • Lec 1: How to Install ...
Best Python Tutorials for Beginners: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Dynamic Programming: • Dynamic Programming
Operating Systems tutorials: // • Operating Systems
DBMS Tutorials: • DBMS (Database Managem...
#loop #cprogramming #coding
#Cprogrammingtutorials
#breakinCprogramming
#jennyslectures
I think we don't want unacademy when Jenny mam is here!! ❤✨
Hiii
Yes absolutely right 👍👍😍🔥🔥
Butter lite🤣🤣🤣🤣
Yeah?
It's right
int sum = 0;
do{
int num ;
printf("Enter the number to add it into the sum :");
scanf("%d",&num);
if(num
But it prints infinite sums
@@vinaytummapala260 it's becoz condition in while is always true
Usage of the 'break' Statement 01:39
Example Using 'break' with a 'for' Loop 03:27
Early Exit from a Loop with 'break' 05:32
Using 'break' in a 'for' Loop 07:37
Using 'break' with Indefinite Loops 09:34
Handling Infinite Loops with 'break' 11:33
Conclusion and Upcoming Topics 13:33
2:26 Lecture Starts
Thanks buddy
🥲
thanks dear
The best teacher ever!!
Code:
#include
main()
{
int a,i=1,sum=0,average;
do
{
printf("Enter any number:
");
scanf("%d",&a);
i++;
if(a
calculating average wasn't required here though............. But anyways, the program has no errors
Now I am feeling that I am learning programming ❤️
me too bro
Me too
me too
thank you so much MADAM to teaching us🥰🥰
i done with do while
PROGRAM:
#include
void main() {
int a,sum=0;
do
{ printf("enter a number:");
scanf("%d",&a);
if(a
The way you teach makes me get a lot of concepts in a short span of time ,please continue the DAA playlist mam plz...................
Ma'am,
Can you please make Python, Java in-depth video lectures soon.
Also, please make web development series.
You teach very well.
Your lectures are helping me alot !!! Thanks ma'am
I just saw your play list and im i love with your channel
Mam I can also use hardcoding with for loop instead of while loop in that particular questions
For(I=1;;I++)
Mam your teaching skills are really amazing 😍😍🔥🔥
👇Who are seeing this in 2024 ✨
What r u studying bro...?
@@Bharath-s7gBE
Mam Why don't u do a tutorial for python programming as more important than c language @ focus on it after completion of c language
we also need a video on differences between variables and constants
Mam please make a play list of java or web development or python or c++ in depth
hi need more lectures on c programming....please
Excellent explaination 🥰🥰.thankyou very much
do while code for above program
#include
#include
int main()
{
int a,sum=0;
do
{
printf("Enter a Number=");
scanf("%d",&a);
if(a
Mam there are some mistake in this video at for loop inside if we write ( a > 5 ll a
Mam can u pls post java courses also Mam we are eagerly waiting for java class Mam
great job mam.........love from Bangladesh
2:27 lecture starts
#include
#include
int a,i=1,sum=0;
int main()
{
do
{
printf("enter the number:
");
scanf("%d",&a);
if(a
Madam pls start core Java also
Thanks
Ma'am please upload other videos of c as soon as possible.
thanks for help all students and other people
Mam please do lectures in hindi as it is in demand these days....
Thanks
You are wonderful teacher mam ❤❤😇😇 Bestest way of teaching.
Mam please do videos on network security and cyber security..
I fallow your data structure and DBMS I LIKE UR VOICE AS WELL AS YOUR CLASSES
Mam could you plzz make full playlist on python, java plzzz mam
Mam you are best teacher ❤️❤️❤️❤️❤️🙏🙏🙏🔥🔥🔥🔥🔥🔥😎
Hello mam...gd evening
May I know that have you made any video on OSI model or TCP/IP model
madam please make a playlist on python....otherwise please tell me the best source to learn python because more advanced technologies depends on python like ML ,AI....
#include
#include
void main()
{
int a,sum=0;
clrscr();
do
{
Printf("enter a number :");
Scanf("%d",&a);
If(a
Mam in do while loop
Can we use assignment operator?
#include
int main()
{ int i=0,sum=0,a;
do
{
printf("enter a
");
scanf("%d",&a);
if(a
Watched and Understood ❤
Please do teach us AI mam if possible
If not possible teach us atleast basics for beginners
#include
#include
int main()
{
int a ,sum=0;
do
{
printf("Enter the number:");
scanf("%d",&a);
if(a
#include
void main()
{
int i=1,a,sum=0;
do
{
printf(" enter a value ");
scanf("%d",&a);
if(a0);
printf("sum is %d",sum);
} /* Break using do while Loop */
What about this
What if we place the your total printf statement within do rather than using it in while
hii nyc work mam
#include
int main() {
int a, sum = 0;
do {
printf("Enter number: ");
scanf("%d", &a);
if (a < 0) {
break;
}
sum = sum + a;
} while (1);
printf("sum will be %d", sum);
return 0;
}
Do you explain by taking the example program to coming in exams 🙏🙏🙏
Madam i have completed intermediate... So can i learn the c, java, python?
Did this program with "do while".😇
#include
int main()
{
int a, sum = 0;
do
{
printf("Enter a number:
");
scanf("%d", &a);
if (a
👏great work
Mam ..can I solve data structure questions In c language in campus interview ?
#include
int main(){
int i=0,a,sum=0;
do{
printf("Enter a number:",a);
scanf("%d",&a);
if(a
13:01 mami had a small doubt in the given code sequence
while (condition){. \\loop1
for(condition1;condition2;condition3){. \loop 2
break;
}
}
mam this above break will throw the cursor outside loop 2 or both loops?
Ma'am , are u going to make video for paid subscription?
Please ma'am I request to you please don't do like this because it is very helpful for us and I personally can't afford your paid subscription.
Nice ma'am tq so much
Mam I'm not forcing I'm requesting if u to post some vedio about GRE exam
Plz mam it's a request not a demand.. 😊
thanks madam😊 pahli baar coding sikhne me maja aa raha hai 😅😅😂😛
#include
#include
void main(){
int a,sum=0;
do{
printf("Enter an number ");
scanf("%d",&a);
if(a
Tnx mam for your support
Thank you❤
Need examples
Mam please give me a idea to lern c level programing form starting
Mam basic problem solving programming...in c
.. video😶
Ma am why is sum =0 necessary or is sum alone good for declaring variable
Good evening! I want to add only even number. But my program add odd number. if(n%2==0)
#include
int main() {
int a,sum=0;
do
{
printf("Enter a number : ");
scanf("%d",&a);
if(a
Python programming tutorial videos for beginners is available in your channel madam
mam please continue with the DAA subject mam
Mam, before sum, Can we write else statement?
#include
int main() {
int sum=0, a;
do
{
printf("enter integer number:" );
scanf("%d",&a);
sum+=a;
}while(a>0);
printf("%d", sum);
return 0;
}❤❤
Can we write the scanf statement before while loop? Mam
Thank you mam ❤
thank you maam
Ma'm you are looking like an angel... 🙈🙈
Thank you ma'am 🙇♀️
tq mam
What If we give the value of a=0??
Awesome....
#include
#include
int main()
{
int a,sum=0;
do{
printf("Enter number: ");
scanf("%d",&a);
if(a
Mam It is better that you should taught us hindi.U will better explain things in hindi instead of english
Your for loop code shows error in vs code....is shows break statement not within loop or switch
At 11:05 why -10(-ve's) is not included in sum ( I mean in adding) ???
Mam when will the pointer come.
And whenever you come then please teach in live class
Yes mam we need first
And mam we need live class that time please
Mam after break ; ya fir : ye
Compulsory for program..
; is compulsory
@@PoojaYadav-ph2xp thank you so much
Mam go to statement
super intelect
All dout clear mam
plzz mam hindi we are unable to execute the lecture in our mind in english language
please Mam array jaldee star kar do
mere second semester ke exam hai
mam plz continue c progamming playlist
Came only to see you.
just ooosm mam 😇😇😇😇
I like ur voice madam
✋
Plz can any one explain how while(1)works
It is a infinite loop and the loop won't end at all because 1 is always true condition.
Mam plz complete first
Next manth my exm
So plz,,, 🙏
😍nice video
int age;
char ch;
printf("Enter your age ");
scanf("%d",age);
printf("
Enter first letter of your name");
scanf("%c",ch);
if(age>18 && age
i found mistake in for loop program code you written capital letter for sum
Can 'break statement' use to break function?
No, we can't use the break statement in the function to come out of the function. To exit from the function we use a "return" statement.
mam pls c jaldi khatam kijiye naa aap bohot achh padhai h butr itna dheere mat padhaiye pls ffor god sake