can we put calculation statement after the first " if "? then we put " if " after that.. if .......... THEN .............. if ................ like this?
If (n1>n2) { If (n1>n3) { Printf ( " n1 is large) ; } Else { Printf ( "n3 is large") ; } } Where ,n1 = 30 n2 = 20 n3 = 40 which part we will take pls tell me
sir, can u please explain this to me -> According to the Gregorian calendar, it was Monday on the date 01/01/1900. If any year is input through the keyboard write a program to find out what is the day on 1st January of this year
in decision control statements topic you told don't write condition in else statement but in the nested if topic you wrote condition under the else, can you explain sir.
hi rohan yes you can use it. thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
hi gaurav void main() means that the functions main() does not return a value. int main() makes sure your program can return a value of type int to the OS
hi dhanajay my intention is we should not write any condition beside the ELSE as we are writing in IF. if we want to check the condition in ELSE we are supposed to use IF statement. Hope your doubt has been clarified. thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
sir plzzzz help, in one of the program on formated output , if y is declared as int and given a value of 98.7654 under the format specifier%f it shows the output ad 98.765404 why is that? sir plzzzz reply
Hi ashay fernandes i have executed the following code and i got 0.0 becoz variable declared as int and if you print y with %f the result will be 0 and if you declared y as float and assigned the value 98.7654 and if you print the same with %f then you will get 98.765404 becoz float variable will allow upto 6 precisions that mean 6 values after the decimal point. Prog1: #include main() { float y=98.7654; printf("%d",y); } Output : 0.000000 Prog2: #include main() { float y=98.7654; printf("%f",y); } Output : 98.765404
hi ashay coming to the floating point as its precision is upto 6 decimals, its value will not be absolute there would be small deviation from its absolute value so you may get the result some times 98.765404 instead of 98.765400
hi ASHAY 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. ruclips.net/user/sundeepsaradhi SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
Hello sir;This was a very fine class for me & I enjoyed ur lecture but i have an idea to take this much more interesting After teaching instead of checking the examples on the black board u should have shown it on a C editor Even though This was a fine class :D Thamk U sir.
hi sai i thought the same but i failed to implement but in the coming videos i am trying to do that by executing in C editor. thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
hi lingarao nested switch is very simple writing the switch with in the switch function and syntax will be same so depends on the problem statement we have to implement nested switch. #include main () { /* local variable definition */ int a = 100; int b = 200; switch(a) { case 100: printf("This is part of outer switch ", a ); switch(b) { case 200: printf("This is part of inner switch ", a ); } } printf("Exact value of a is : %d ", a ); printf("Exact value of b is : %d ", b ); }
hi hassan i am sorry i dont know hindi plz communicate in english if you are using C compiler we need not include conio.h if you are using C++ compiler we have to include conio.h One thing Mouse pointer will be enabled in C++ compiler Mouse pointer is disabled in C compiler.
hi biswajit thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Sir , ur program is having buggs because of ...... If user entered (30 30 30) ..... Ur program will not work on it ... U have to add if(a==b && a==c &&b==c)
Your explanation is so clear understandable we gain well knowledge from you ....thanks alot sir
Your explanation with examples is interesting sir and thank you for establishing of your RUclips channel
Thanku! very much sir
The way of your explanation is very nice.
Crystal clear explanation sir!
your explanation is perfect Sir,thanks so much......!
ur explanation is very clear to understand the concept sir,thank you so much.
Tq bro superb explanation
Better than the best 😉😉
sir I am from kerala your class is well explained thank you for your interesting class
Okda
Superb.explanation technique sir
Thank u so much
super ji super ji super ji...Awesome LECTURER ......
Sir u are really a great teacher😃
really a good learning experience
thank you sir thank you so much ....my teacher teaches me but also sir i watch your lectures...
hi
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Clearly understood the concept 🙏
Awesome 👌👍
Tq sir for ur explanation...☺️
thankyou sir.
love you sir
thank you thank you very much
thank you sir thank you so much for ur great explanation
Tq sir very neat explanation
can we put calculation statement after the first " if "? then we put " if " after that..
if .......... THEN
..............
if ................
like this?
Nice explanation sir 👍👍
Thank you so much sir 😊😊😊
Tnk u sir... U teach very well...
Thank you megha share my sessions to your friends and let them subscribe to our channel
Sure sir....
Thank you very much sir!!
If (n1>n2)
{
If (n1>n3)
{
Printf ( " n1 is large) ;
}
Else
{
Printf ( "n3 is large") ;
}
}
Where ,n1 = 30
n2 = 20
n3 = 40 which part we will take pls tell me
n3 is large
Syntax and decleration error dude
sir, can u please explain this to me -> According to the Gregorian calendar, it was Monday on the
date 01/01/1900. If any year is input through the keyboard
write a program to find out what is the day on 1st January of
this year
In this program why can't we use int main
thank you sir
in decision control statements topic you told don't write condition in else statement but in the nested if topic you wrote condition under the else, can you explain sir.
Under else again we have written condition in if part
Sir can you please upload a video to find frequency of appearing an element in an array. Like how many numbers are occurring the number of times.
thank u very much sirr well teaching
hi
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
sir suuuuper class. tq so much sir
hi srinuvasarao
thanks for watching my sessions and thanks for your interest and support towards our channel.keep following my sessions.
Sir,when I executed this I got error like return type default to int
Thank u 👍🏼👍🏼👍🏼👍🏼🤩🤩
Love it..
I need the nested if only sir.you are saying nested if else.please sir tell the nested if alone
In second example directly wrote scan f (is it correct)
Thank you so much sir..
Can't we use logical operator OR
hi rohan
yes you can use it.
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
Sir what is the difference between void main, main and Int main
hi gaurav
void main() means that the functions main() does not return a value.
int main() makes sure your program can return a value of type int to the OS
i also have this doubt. I thank you for asking this doubt to sir
Hi sir
In previous video u told, in else part we should not write any conditional operator. In nested if you are writing.plz explain...
hi dhanajay
my intention is we should not write any condition beside the ELSE as we are writing in IF.
if we want to check the condition in ELSE we are supposed to use IF statement.
Hope your doubt has been clarified.
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
sir plzzzz help,
in one of the program on formated output ,
if y is declared as int and given a value of 98.7654
under the format specifier%f it shows the output ad 98.765404
why is that?
sir plzzzz reply
Hi ashay fernandes i have executed the following code and i got 0.0 becoz variable declared as int and if you print y with %f the result will be 0 and if you declared y as float and assigned the value 98.7654 and if you print the same with %f then you will get 98.765404 becoz float variable will allow upto 6 precisions that mean 6 values after the decimal point.
Prog1:
#include
main()
{
float y=98.7654;
printf("%d",y);
}
Output : 0.000000
Prog2:
#include
main()
{
float y=98.7654;
printf("%f",y);
}
Output : 98.765404
Sorry in the prog1 declare y as int
hi ashay
coming to the floating point as its precision is upto 6 decimals, its value will not be absolute there would be small deviation from its absolute value so you may get the result some times 98.765404 instead of 98.765400
hi ASHAY
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.
ruclips.net/user/sundeepsaradhi
SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
Can we use else if instead of nested if sir ?
Use&&
Very nice
hi anshul
thank you for your interest towards our channel and share my sessions with your friends and subscribe to my channel.
Appliciated more
Hiii sir nested if else statement LA electricity code konjam sollithangalan
Sir please wrote the definitions and the importance of that topic on black board
sure harish...
Sundeep Saradhi tq sir
Hello sir;This was a very fine class for me & I enjoyed ur lecture
but i have an idea to take this much more interesting
After teaching instead of checking the examples on the black board u should have shown it on a C editor
Even though This was a fine class :D
Thamk U sir.
hi sai
i thought the same but i failed to implement but in the coming videos i am trying to do that by executing in C editor.
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
nested switch tell me about that
hi lingarao
nested switch is very simple writing the switch with in the switch function and syntax will be same so depends on the problem statement we have to implement nested switch.
#include
main ()
{
/* local variable definition */
int a = 100;
int b = 200;
switch(a)
{
case 100:
printf("This is part of outer switch
", a );
switch(b)
{
case 200:
printf("This is part of inner switch
", a );
}
}
printf("Exact value of a is : %d
", a );
printf("Exact value of b is : %d
", b );
}
sir is my srf ap ny stdio.h wali header file lekhi lekin conio wali kyn nhi lekhi??
hi hassan
i am sorry i dont know hindi plz communicate in english
if you are using C compiler we need not include conio.h
if you are using C++ compiler we have to include conio.h
One thing Mouse pointer will be enabled in C++ compiler
Mouse pointer is disabled in C compiler.
Thank you sir
If anyone two values are equal what might be the ans 11:11
sir upload video regularly of c++
I have some ideas from your lecture
Thank u sir
hi biswajit
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
Op👍
Thnq sir
No mention mam 😂🤣
Sir please find largest number amongst 5 using nested if
hi rana
sure i will upload it soon.
Sir can u please mail me the solution of this program because i have to submit this assignment..
Ihtishamrana32@gmail.com
Sir kindly its a request please.
Hi Ihtisham Rana definitely I will try and send u the mail soon.
Sundeep Saradhi thank u so much sir
I shall be vary thankfull to u if u send me this solution till tonight
Brillent
Sir int means initial (or) integer
Integer
Why not using
if (n1>n2)&&(n1>n3)
{
Printf("N1 is the largest amongst
");
}
& so on... 😉😀 Simple way without messing up
Your telling roung .
link danga plz
Sir , ur program is having buggs because of ......
If user entered (30 30 30) .....
Ur program will not work on it ...
U have to add if(a==b && a==c &&b==c)
sir apka koi Hindi channel nahi hai
sir apka number danga plz apke sath bat Karna hai
English mujhe Samaj mai ati nahi
Hindi me bola kar chote
Thank you Sir
Thank u so much sir 🥰
Thank you sir