Thank u Sir. I am maths student. I have skill paper c. From yesterday I was seeing all your videos. I learned lot of things. Today I wrote exam well. Thank you so much Sir. U r very good teacher. Because a non major student also can understand things very well. Thank u so much Sir
hi komal thanks for your interest towards our channel and watching my sessions. if possible make a selfie video having a feedback regarding our channel and send it to my whatsapp number 9885466061 so that i would like to upload the feedback on our channel. if possible send me soon and its so valuable for our channel.expecting the feedback from you.
hi alisha i would like to have a FEEDBACK ( in the form of video not more than 15 sec) from you towards our channel and my sessions.so that i will collect feedbacks from all and will upload in youtube, Send your valuable FEEDBACK to my WhatsApp number : +91 9885466061 (91 is the country code) waiting for your valuable feedback. th-cam.com/users/sundeepsaradhi SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
Thank you for superb explanation.... But One doubt sir How can I know that when should I use for,while,do while loops Because there function is same but syntax different .
Thanks Sir. Very simplified and clear explaination. You are doing a great job. I always find your video helpful. I'm sharing your videos with my friends.
I have one doubt sir ,you told that updation means i+2 ,but u re adding i+1 in do while example in this video that is right or not I mean 98+2=100 and 100+2 =102
hi anusha here updation means we have to update the loop variable and its not restricted to use only increment operator. Depends on logic we have to write the updation. Hope your doubt has been clarified.
Respected Sir, In switch case you have mentioned that if no break statement is used, then all the cases shall be executed whether condion of case is met with switch or not ? I think that if break statement is not used, then the statements under that case shall be executed which met the condition of switch but in absence of a break statement, the program will check all the following cases until it faces a break statement or closing brace but no execution will take place because condition does not met of these cases. Kindly confirm this ambiguity. With Regards, S S RANA.
hi abiy here While and For loop are called pretest loops where first the condition will be verified and if the condition is true then only control will enters into the loop While loop is used when user doesn't know the number of iterations. For loop is used when user knows the number of iterations. Do-While loop is called as Post_Test loop where first the control enters into the body of the loop and at the end the condition will be verified. hope your doubt have been clarified.
Ur explanation is too gud sir it will directly reach our brain without any doubt Sir plz tell ous the imp questions for second semester So that we can prepare for exams.
hi anudeep we should not keep the semicolon in while loop If you are using do while loop then semicolon should be placed after the while loop while(condition) { statements; } do { statements; }while(condition); Hope your doubt has been clarified.
Sir im sagar sir.Concepts are 100 percent clear sir pls work out programmes based on all the topics sir mainly programmes based on with and without function sir and pls rearrange the c programming videos sir
hi pramod thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Hi I'm a complete newbie to coding and I was wondering if you or any of the ytbers could help me optimize this calculator I was building. I was hoping to make it like a real calculator where you can have a continous round of operations until you press the equal sign. The thing is I feel I used a bunch of repeating code and wanted advise on how I can shorten/ optimize it. #include #include #include #include double getnuM(double x); main() { char op = 'x'; double a, b, c; clrscr(); printf("Enter first number: "); scanf("%lf", &a); do{ printf("Enter Operator: "); scanf("%c", &op);
switch(op) { case 's' : c = sqrt(a);printf("The square root of %f is: %f ", a, c);break; case '+' : b = getnuM(b);c = a + b;printf("%f + %f = %f ", a, b, c);break; case '-' : b = getnuM(b);c = a - b;printf("%f - %f = %f ", a, b, c);break; case '*' : b = getnuM(b);c = a * b;printf("%f * %f = %f ", a, b, c);break; case '/' : b = getnuM(b);c = a / b;printf("%f / %f = %f ", a, b, c);break; case 'p' : b = getnuM(b);c = pow(a, b);printf("%f to the power of %f = %f ", a, b, c);break; default: printf("Invalid Operator or End of operation: %f ", c); } a = c; }while (op == '+' || op == '-' || op == '*' || op == '/' || op == 'p'|| op == 's'); //getch(); } double getnuM(double x) { printf("Enter next number: "); scanf("%lf", &x); return x; }
Sir in do while there shouldn't be 101 printed in the repeatition of block before execution of 102 and control of 102 should be lost and move out of the block
No here we are incrementing the variable after the printf statement so i value will be 101 but it will not be printed. if we write increment statement above the printf statement we will get 101 also. Hope your doubt has been clarified. If you find difficulty let me know i will clarify your doubt.
because .h consider as header file and it includes the printf and scanf statement inside thier own library functions hence it called as standard input and output function
Sir after printing 100 i++ means 101 first it goes to do so I thought that 101 also print after then it check a condition then it fails so 102 is not printing am I correct sit
Thank u Sir. I am maths student. I have skill paper c. From yesterday I was seeing all your videos. I learned lot of things. Today I wrote exam well. Thank you so much Sir. U r very good teacher. Because a non major student also can understand things very well. Thank u so much Sir
I hope i have a teacher like you, very mature explanation!!
Am feeling very happy ... After watching this concept in ur channel..
Thank u for supporting us sir....
good job sir ... ur lecture is so interesting and easy to understand. . it help me a lot to clear my every concept.. Thank u sir
hi komal
thanks for your interest towards our channel and watching my sessions.
if possible make a selfie video having a feedback regarding our channel and send it to my whatsapp number 9885466061 so that i would like to upload the feedback on our channel.
if possible send me soon and its so valuable for our channel.expecting the feedback from you.
@@sundeepsaradhi sir why do we write statement x at the end
Can we write same program using if statement
the way you explaining is superb sir i have told to my friend easy to understand from this channel thank you sir so much
thankss a lot sir.... best c programming teacher ever for free......
Thank you so much Sir for the session. It was very interesting even for a guy with out programming background like me.
Upto these before videos are excellent sir I'm feeling happy by watching those
as a bio student in PUC , i appreciate our respected sir for uploading this helpful video .. Thank you once again ..
Hi Alisha Parajuli thanks for listening to my sessions and if you like my sessions do subscribe and share my sessions with your friends.
hi alisha
i would like to have a FEEDBACK ( in the form of video not more than 15 sec) from you towards our channel and my sessions.so that i will collect feedbacks from all and will upload in youtube,
Send your valuable FEEDBACK to my WhatsApp number : +91 9885466061 (91 is the country code)
waiting for your valuable feedback.
th-cam.com/users/sundeepsaradhi
SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
Thank you for superb explanation....
But
One doubt sir
How can I know that when should I use for,while,do while loops
Because there function is same but syntax different .
Ur teaching is very good mind blowing explanation
Can you do a complete tutorial on full stack development?these videos are really useful
Thanks Sir. Very simplified and clear explaination. You are doing a great job. I always find your video helpful. I'm sharing your videos with my friends.
hi zag
thanks for your interest towards our channel and thanks for giving support for our channel.
You're better than my professor, who was trying to explain it for more than 2hrs!!
Sir ,I have more interesting to listen Ur lecture's
Thank u so much sir
When we are using while condition ?
When we using dowhile condition?
When we are for ? Why
Excellent teaching sir very interesting and understanding plz upload more videos on data structures also for us tq
sir your teaching is very easy to understand. Thanks for the video.
Doubts are cleared.
Sir, what's the use of do- while loop? I mean why we need to execute the block of the statement first?
Very happy with your explanation
10Q very much!!!!! keep teaching..... God Bless you
hi abiy
thanks for watching my sessions and supporting our channel. plz do subscribe to our channel and keep following my sessions.
@@sundeepsaradhi sir python meeeda vedios cheyandi
Very nice sir, Thanking you sir
With such a nice explanation I'll do great things... Thanks 1000000
Tank u so much sirr it is easy to learn through ur videos
Your lecture is so informative and easy to understand sir
Sir why did u taken 0 in while conduction,where are checking for natural number know natural numbers 1-100
I have one doubt sir ,you told that updation means i+2 ,but u re adding i+1 in do while example in this video that is right or not
I mean 98+2=100 and 100+2 =102
hi anusha
here updation means we have to update the loop variable and its not restricted to use only increment operator.
Depends on logic we have to write the updation.
Hope your doubt has been clarified.
Thank u sir
Nice sir.we also want these type of sir in our college
Thank you sir for super explaining
Sir do while lo 101 kudaa print avtade kadhaa sir
Mer first iteration jaregena tarvata correct or wrong check chasukuntade ane chapparu
Respected Sir,
In switch case you have mentioned that if no break statement is used, then all the cases shall be executed whether condion of case is met with switch or not ? I think that if break statement is not used, then the statements under that case shall be executed which met the condition of switch but in absence of a break statement, the program will check all the following cases until it faces a break statement or closing brace but no execution will take place because condition does not met of these cases. Kindly confirm this ambiguity.
With Regards,
S S RANA.
what difference will it make if use ++i instead of i++
Good job sir
Very helpful
Tq
Broo
But complete program system lo
Complie cheste chala baguntadhi 😊😊
u'r teaching is very good sir🤗🤗🤗
Sir same example i.e, printing 1-100 natural numbers is taught in our class (your explanation is super than them)....but what is further usage of it ?
Super sir!!!!
you have an intereting presentation.what if we use only one of the method. why we are required to use different methods?
hi abiy
here While and For loop are called pretest loops where first the condition will be verified and if the condition is true then only control will enters into the loop
While loop is used when user doesn't know the number of iterations.
For loop is used when user knows the number of iterations.
Do-While loop is called as Post_Test loop where first the control enters into the body of the loop and at the end the condition will be verified.
hope your doubt have been clarified.
Thanks sir
Clearly understand thank you so much for your vedio.
Thnk u sir i lke the way you teach..... You teach very well sir
Sir good explanation and I have a doubt sir that is - what is the difference between while loop and do while loop in there uses
Ur explanation is too gud sir it will directly reach our brain without any doubt
Sir plz tell ous the imp questions for second semester So that we can prepare for exams.
incredible sir
Nice video
u r best
hello sir my compiller is not displaying nothing in output, eventhough everything is correct, its displaying blank output, please help me.
hi
post the program in comment section so that i will try to solve this.
Super sir.....
sir condition should be while (i
When semi coloum should be placed in while sir
hi anudeep
we should not keep the semicolon in while loop
If you are using do while loop then semicolon should be placed after the while loop
while(condition)
{
statements;
}
do
{
statements;
}while(condition);
Hope your doubt has been clarified.
Thk u sir for good explanation...these concepts will same in c++ loop?
Sir im sagar sir.Concepts are 100 percent clear sir pls work out programmes based on all the topics sir mainly programmes based on with and without function sir and pls rearrange the c programming videos sir
hi sagar
thanks for your interest towards our channel.soon i will upload them. keep following.
Thank u sir! How to solve arithmetic series?
Really great....
thank you sir for ur great explanaion ....
hi pramod
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
ur lecture is amazing sir , but please can you rearrange the C programming play list
thank you and sure i will change the display order.
Sir why are we putting i+2,i+3. etc.please clarify this dought for me
This prof is better than uoft prof
So helpful.. thankyou so much sir..
Super sir
While we are solving that problem, at iteration 3 there is swap but while explaining with the prog we got no swap,????? Why
Perfect class sir..
Hi I'm a complete newbie to coding and I was wondering if you or any of the ytbers could help me optimize this calculator I was building. I was hoping to make it like a real calculator where you can have a continous round of operations until you press the equal sign. The thing is I feel I used a bunch of repeating code and wanted advise on how I can shorten/ optimize it.
#include
#include
#include
#include
double getnuM(double x);
main()
{
char op = 'x';
double a, b, c;
clrscr();
printf("Enter first number: ");
scanf("%lf", &a);
do{
printf("Enter Operator: ");
scanf("%c", &op);
switch(op)
{
case 's' : c = sqrt(a);printf("The square root of %f is: %f
", a, c);break;
case '+' : b = getnuM(b);c = a + b;printf("%f + %f = %f
", a, b, c);break;
case '-' : b = getnuM(b);c = a - b;printf("%f - %f = %f
", a, b, c);break;
case '*' : b = getnuM(b);c = a * b;printf("%f * %f = %f
", a, b, c);break;
case '/' : b = getnuM(b);c = a / b;printf("%f / %f = %f
", a, b, c);break;
case 'p' : b = getnuM(b);c = pow(a, b);printf("%f to the power of %f = %f
", a, b, c);break;
default: printf("Invalid Operator or End of operation: %f
", c);
}
a = c;
}while (op == '+' || op == '-' || op == '*' || op == '/' || op == 'p'|| op == 's');
//getch();
}
double getnuM(double x)
{
printf("Enter next number: ");
scanf("%lf", &x);
return x;
}
your lecture is superb sir,
but videos are very lengthy, make short as much as possible which will help us to download your playlist easily
Sir in do while there shouldn't be 101 printed in the repeatition of block before execution of 102 and control of 102 should be lost and move out of the block
hi
didn't get your doubt plz elaborate it so that it would be easy for me to clarify.
Sir I was saying last output value should be 101 in do-while loop because 101 would be printed before checking the condition
No here we are incrementing the variable after the printf statement so i value will be 101 but it will not be printed. if we write increment statement above the printf statement we will get 101 also.
Hope your doubt has been clarified.
If you find difficulty let me know i will clarify your doubt.
Yes sir my doubt has been cleared thankyou .... I one more request sir please make videos on c++ language as well
Sir now if we take i=1 then we will get numbers from 1 to 100 na
Thank you so much sir 🙂🙂
Tnq sir this nice sessions...👌
thank you so so much
thank you man you're the best
Use of multiple loop statements?
🙌🙌
Superb sir
amazing sir........
hi syed
thanks for watching my sessions and interest towards our channel.
I like your whiteboard very much
In what kind of uses sir
Sir explain while and for loops in files
The printf why do you add % is it not scanf that we add %
What will happen if you enter I+1
In do while loop
Thank u sir
number is 273747...digit is 7......how we will count digit 7 from the given number....thankyou
by the use of while loop and counter.
In that case you can use the below for loop
for(int i=273747;i>=10;i=i%10)
{
counting statement;
I=I/10;
}
U r super sirr
What happens if we do not use braces after " do"
thank u sir that was helpful
can we use upgrading like i=i+2 and i=i+3 etc etc in while loop too
Yes , you can use
Sir how to solve problems in cp
hi gopi
actually i didnt understood your question.
👍👍
Sir y we used includein c
hi harish
this header file links all the standard input and output functions to our program like printf, scanf functions.
because .h consider as header file and it includes the printf and scanf statement inside thier own library functions hence it called as standard input and output function
Sir in do while loop we use condition after checking the statements so my question is why we use semicolon after while???
Sir please tell about goto statements also
Nice
Sir,program ala cheyalo teliyadam ledu.oka problem echinappudu
logic ga think
Sir koncham fast ga chapande plzz i like u r explanation tq for helping me sir thanks a lot sir
thank u sir so helpful
thanks for your interest towards our channel.
You have initialized with 0 but before u told I am printing natural numbers, don't u know 0 is not a natural number
Tq so much sir
When we should use i-- sir
When you want to print a number from higher values to lower values .for example 100 to 1
Where is for loop sirr
Hi
It was available in part-2
Ok sir..thanks for ur replyy
Sir after printing 100 i++ means 101 first it goes to do so I thought that 101 also print after then it check a condition then it fails so 102 is not printing am I correct sit
Thank. You so much
hi pavan
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.