Shukla Saheb namaste. I had been banging my head to get some simple way to learn programming but was unsuccessful. Today I came across your clip on how to choose your program and that's exactly what I wanted. The five languages i.e. kotlin and ending on javascript was exactly what I wanted. Everyone was emphasising to select your own but the way you explained you boosted me with great motivation. I also went thru your biography and salute you for your down to earth personality. I am already your subscriber and would pay to become premium member. I am damn confident I would get all my mind boggling questions answered by you as I am totally new to programming but am determined to make it my passion and career inspite of being quite aged. Wish you best of health and best of luck. Anyone would be happy to have a mentor as you and so am I. Best regards. Zia Nizami.
Hello Sir, I have Properly understood Logic from your video. But sir I would like to tell my logic about leap year Program... If Sir We do only if( year %4==0 ) then It is a Leap year else It is a not Leap year. Sir tell me if it is wrong. Thank you Sir.
int leapyear; printf("Enter year "); scanf("%d",&leapyear); if(leapyear%4==0 && leapyear%100!=0){ printf("%d is a leap year",leapyear); } else{ printf("%d is not a leap year",leapyear); } yh mene banaya hai ek bar chala k dekho yh
Sir, I have a doubt . If a number is divisible by 400 then it is also divisible by 100 and 4 then why should we write them saperately? We can use 400 only. I learn C language from your video course .
Sir can you tell me What software you are using to run c programming. Because I am using turboc++ but i am phasing some problem . So request to you please tell me
1700 is evenly divisible by 4 but not divisible by 400 and 1700 is also not a leap year . so we have to check that whether a number is divisible by 400 or not
@@dhrubajyotiroy3301bro, i wanna learn c concepts from u, 👉👉👉👉👉 Add me as a contact on RUclips. ruclips.net/user/add_contact?c=dqniClnW7-ZTMunba1Bn-TjRcm-GUw
sir ,your videos really clear the concepts anyone can do this way also ,just need to know the use of logical AND and logical OR operators. makes it more efficient int yr; if(yr%400==0||(yr%100!=0&&yr%4==0)) printf("it is a leap year"); else printf("The year entered is not a leap year");
Sir what if in first else if instead of 100 I'll write 400 and then print not a leap year and then instead of taking second else if we just write else and print leap year. Will it work
main() { Int year; Printf("Enter a year" ) ; Scanf ("%d", & year) ; If(year%4||year%400) Printf(" %d is not a leap year", year) else Printf("%d is leap year ", year) ; } Sir, is it write in every case or nor, please reply
Is this correct plz reply? Void main() { int year; printf("Enter The Year "); Scanf("%d",&year); if(year % 400==0 || year % 100 == 0 || year %4 =0) { printf("The year is leap "); } else { printf("The year is not leap"); } }
int leapyear; printf("Enter year "); scanf("%d",&leapyear); if(leapyear%4==0 && leapyear%100!=0){ printf("%d is a leap year",leapyear); } else{ printf("%d is not a leap year",leapyear); } aapne jo banaya hai usme 100 se divide ho rha hai mtbl ki century year bhi leap year mane jainge
Sir please answer Can we write this code like that main() { int year; clrscr(); printf("Enter a number : "); scanf("%d",&year); if( year%4 && year%400) printf("Not a Leap year"); else printf(" Leap year"); getch(); }
Yes u can but remember in if block u r using && operator means if first condition is false means its result is 0 then it never check next condition So be careful
Abhijeet Singh I am understanding But you think a second that in && operator condition is false then its return 0 and as you know that if first condition is false in || operator then second condition never checked
sir i hav a request i tried to build simple php cart in core php..but i could't make it..your teaching i understand easly so please please upload simple php cart tutorial..
what is the logic behind divided by 100,if we divided directy 400 to cheak leap year or not.Is it necessary to divide by 100,if yes then tell me reason
yadi 1980 ko 400 se divide karne pe leap year nahi aaegi to 4 se divide karenge 100 se thode he karnege to 100 q use kia ja raha hai.... void main(){ int leap; printf("enetr the number"); scanf("%d",&leap); if(leap%400==0) printf("leap year "); elseif(leap%4==0) printf("leap year"); else printf("not leap year"); } is program se leap find kia ja sakta hai.....
If year%100&& year%400==0. Printf it is a leap year Else If year%4==0 and year%100! 0 Printf it is a leap year. Else Printf it is not a leap year. Hope it will work after using proper syntax.
Isme kya galat ha main() {int a; printf("enter an year"); scanf("%d",&a); if(a%4==0) { if (a%400==0)printf("it is a laep year"); else printf("not a leap year"); } else { printf("not a leap year"); }
@@starterunivers1387 Bro, century years like 1700 and 1900 are divisible by 4 but they are not leap years because they are not divisible by 400. you have to keep two conditions in mind: 1)If it's a century year ,then it should be divisible by 400 . Then only it"s a leap year 2) If it's not a century year then it should be divisible by 4. Then it's a leap year. hope this helps
bro century years like 1700 and 1900 are divisible by 4 but they are not leap years . Only those century years are leap years which are divisible by 400. Hope this helps
First part of video -strong logic
Loved it & lovely explanation sir
Many of us can get program from other resources but for logic do watch full video with full concentration guys....
Shukla Saheb namaste.
I had been banging my head to get some simple way to learn programming but was unsuccessful. Today I came across your clip on how to choose your program and that's exactly what I wanted. The five languages i.e. kotlin and ending on javascript was exactly what I wanted. Everyone was emphasising to select your own but the way you explained you boosted me with great motivation.
I also went thru your biography and salute you for your down to earth personality. I am already your subscriber and would pay to become premium member.
I am damn confident I would get all my mind boggling questions answered by you as I am totally new to programming but am determined to make it my passion and career inspite of being quite aged. Wish you best of health and best of luck. Anyone would be happy to have a mentor as you and so am I. Best regards.
Zia Nizami.
Thanks for your words. Best wishes, enjoy learning
Very nice explain sir
Superb sir
Aap to mere mazher sir ki tarha padha rahe he totally bounce thanks for confusingly vedio
Nice sir jii
Started Coding journey by Your support ❤❤
good luck for your new c language series
Hello Sir,
I have Properly understood Logic from your video.
But sir I would like to tell my logic about leap year Program...
If Sir We do only if( year %4==0 ) then It is a Leap year else It is a not Leap year.
Sir tell me if it is wrong.
Thank you Sir.
Bahi sahi he ye mene bhi ese hi kiya he
Yes u are....
1700 is non leap year...
But according to your logic 1700 is a leap year
int leapyear;
printf("Enter year
");
scanf("%d",&leapyear);
if(leapyear%4==0 && leapyear%100!=0){
printf("%d is a leap year",leapyear);
}
else{
printf("%d is not a leap year",leapyear);
}
yh mene banaya hai ek bar chala k dekho yh
Thanks you sir...
For doing such a great work...
Thanks sir ase sir hona chiye to student ki life ban jaye
I am totally confused 🙄😒
Why bro
Sir, I have a doubt . If a number is divisible by 400 then it is also divisible by 100 and 4 then why should we write them saperately? We can use 400 only. I learn C language from your video course .
because to check if it is divisible by 4 or not
it is nested IF condition bro
It's really interesting video.
Thank you sir
Sir can you tell me
What software you are using to run c programming. Because I am using turboc++ but i am phasing some problem . So request to you please tell me
You Should try Visual Studio Code
thank you SirG
Sir par programming tho #include seh start hota hai na par?
Start hota hai mat bolo pehle bolo kiyun start hota.....
Haa tum bolo na ku hota hai
Sir give me an answer ..kya hum only 4 se devide karke nahi like sakte.kyoki Jo bhi 4 seedevide hoga vo 400 bhi hoga or 100 sebhi hoga...
4 se kewal divide karoge to 1900 ko bhi leap year bol doge jo ki leap year nahi hai
1700 is evenly divisible by 4 but not divisible by 400 and 1700 is also not a leap year . so we have to check that whether a number is divisible by 400 or not
@@dhrubajyotiroy3301bro, i wanna learn c concepts from u, 👉👉👉👉👉 Add me as a contact on RUclips. ruclips.net/user/add_contact?c=dqniClnW7-ZTMunba1Bn-TjRcm-GUw
sir ,your videos really clear the concepts
anyone can do this way also ,just need to know the use of logical AND and logical OR operators. makes it more efficient
int yr;
if(yr%400==0||(yr%100!=0&&yr%4==0))
printf("it is a leap year");
else
printf("The year entered is not a leap year");
but, we dont need to check with 100. it can also be correct. if(year%4==0||year%400==0)
1900wrong method
@@loftybits6301 NO you can't do this......it will give incorrect result for e.g. 1700 is divisible by 4 but it is not a leap year
Sir what if in first else if instead of 100 I'll write 400 and then print not a leap year and then instead of taking second else if we just write else and print leap year.
Will it work
10th 50%
12th 46.6
BCA 67.6
Can i eligible all University mca exam
Because my 12th marks less than
yes you are eligible
Sir Thanks for you 2nd show programming in C
sir,you said a number is divisible by 100 is also divisible by 4.but is not true for ex when i tech 1700.this number is divisible by 100 but not 4.
thanks!!
new logic added in my knowledge:y%4
Sir kya mai program to print list of leap year from 2001to2021ke liye ye jo aap bta rhe h vo likh sakte h kya
10:08 wo else condition me vaha par agar hamne %4 ki place par %400 le liya to chalega?
👌🔥
main()
{
Int year;
Printf("Enter a year" ) ;
Scanf ("%d", & year) ;
If(year%4||year%400)
Printf("
%d is not a leap year",
year)
else
Printf("%d is leap year ", year) ;
}
Sir, is it write in every case or nor, please reply
you can"t use logical OR operator in if condition here because some numbers which are divisible by 4 may not be divisible by 400 like 1700
@@dhrubajyotiroy3301 That's what he is trying to make. Year should be divisible by 4 or 400.
@@ritavyas644 the problem is that in if else there is short circuit mtlb yeh ki agar pehla condition true hogya toh dusra check hiin nahi hoga
Great video
Video Achha lga sir
sirji nice video
Sir kya aap bata sakte he ki years ko 4 SE hi divide kyu karte he.please reply sir
Thank you sir. Sir ask one question in previous vedio but u didn't answer about that
sir, you teach difficult things in the most simplest way!!
Sir is video me ham century year aur leap year dono ko ek sath dekh rahe right?
good explanation sir
Is this correct plz reply?
Void main()
{
int year;
printf("Enter The Year
");
Scanf("%d",&year);
if(year % 400==0 || year % 100 == 0 || year %4 =0)
{
printf("The year is leap
");
}
else
{
printf("The year is not leap");
}
}
int leapyear;
printf("Enter year
");
scanf("%d",&leapyear);
if(leapyear%4==0 && leapyear%100!=0){
printf("%d is a leap year",leapyear);
}
else{
printf("%d is not a leap year",leapyear);
}
aapne jo banaya hai usme 100 se divide ho rha hai mtbl ki century year bhi leap year mane jainge
Sir please make video lectures on "Pointers"
Sir please answer
Can we write this code like that
main()
{
int year;
clrscr();
printf("Enter a number : ");
scanf("%d",&year);
if( year%4 && year%400)
printf("Not a Leap year");
else
printf("
Leap year");
getch();
}
Yes u can but remember in if block u r using && operator means if first condition is false means its result is 0 then it never check next condition
So be careful
Sorry friend this time I'm anable to tell u because this time I have no laptop
I will tell u tommarow
Good night
Abhijeet Singh I am understanding
But you think a second that in && operator condition is false then its return 0 and as you know that if first condition is false in || operator then second condition never checked
sir i hav a request i tried to build simple php cart in core php..but i could't make it..your teaching i understand easly so please please upload simple php cart tutorial..
what is the logic behind divided by 100,if we divided directy 400 to cheak leap year or not.Is it necessary to divide by 100,if yes then tell me reason
yadi 1980 ko 400 se divide karoge to yeh leap year nahi aayega, jabki yeh leap year hai
but it is divisible by 4.... in condition we also use (leap%4==0)...now why we divide by 100...
we should check by 4&400,to find the leap year ,...why we use 100 to divide .
yadi 1980 ko 400 se divide karne pe leap year nahi aaegi to 4 se divide karenge 100 se thode he karnege to 100 q use kia ja raha hai....
void main(){
int leap;
printf("enetr the number");
scanf("%d",&leap);
if(leap%400==0)
printf("leap year ");
elseif(leap%4==0)
printf("leap year");
else
printf("not leap year");
}
is program se leap find kia ja sakta hai.....
@@AVINASHKUMAR-vo3cc bro, there are many 🤸🤸kid🤼🤼examples u r looking for-- 1700,1900,1300,1500,2100,2200,2300,2500,2700,2600,2900😝😝😝😝😝😝😂😂😂😂😂😂😂😂😂😂😂
bhut acchi video hai sir
Sir, What is difference between int and long int.???
int variable takes 4 bytes in memory, long int variable takes 8 bytes
Thanks, What is the use and difference between getc() , and getchar() functions.???
sir, plzzz reply.. I'm a big fan of yours
thank you very much sir.
Thanks sir..its helpful
from chhattisgarh
sir motivation video laiye
Nice....
Thanks sir plz create operating system tutorial
Nice
thank you sir🙏
sir jee very nice
Great
Please make this program using logical operator and,or, not
If year%100&& year%400==0.
Printf it is a leap year
Else
If year%4==0 and year%100! 0
Printf it is a leap year.
Else
Printf it is not a leap year.
Hope it will work after using proper syntax.
! Mark is a not equal to operator.
sir pointers ki videos kha milengi in c
Isme kya galat ha
main()
{int a;
printf("enter an year");
scanf("%d",&a);
if(a%4==0)
{
if (a%400==0)printf("it is a laep year");
else printf("not a leap year");
}
else {
printf("not a leap year");
}
sir getchar_unlocked() function pe ek video bnao jisme wo int me convert karta hai..plz
Sir Prime Number Ka Video Banaiye Phir Se Samajh Nahi Aa Raha Hai Wo
Why we divide value from 4
Thanks
Thanks 2nd one is better
Tq so much sir
Sir code is not running...
wow
Sir..direct year%4 hone se toh leap year
Else not leap year
But apne 100 and 400 se divide kyo kiya
because sabhi century year leap year nahi hote
@@mysirgdotcom 100 and 400 kyo sir
@@starterunivers1387 Bro, century years like 1700 and 1900 are divisible by 4 but they are not leap years because they are not divisible by 400.
you have to keep two conditions in mind:
1)If it's a century year ,then it should be divisible by 400 . Then only it"s a leap year
2) If it's not a century year then it should be divisible by 4. Then it's a leap year.
hope this helps
Why we not use (/) this sign
Why use %
/ gives quotient
% gives remainder , if the remainder is 0 then completely divisible
Why we divide 4 and 400 only why not 2 and 200 number.plz ans
complex program, easy ho sakta tha
how
if(year%100!=0 && year%4 == 0 || year%400 == 0)
printf("leap year");
else
printf("not a leap year")
Yr bc samjh nhi arha ki 100 ka syappa kyun dala hai simply jo 4 se divide ho rha hai vo leap yr hai .....chahe vo century yr hi kyun na ho
@@mohdsaadkhan5082 well done bro it's more efficient way and less coding.good job
@@Travel_brat 1700 (century year) is divisible by 4 but it's not a leap year because it's not divisible by 400. century years must be divisible by 400
Thanx sir
This symbol % doesnt represent division
2 nd wala code easy hai
First
Ok
what about 100
if(year%100!=0 && year%4 == 0 || year%400 == 0)
printf("leap year");
else
printf("not a leap year");
Why we devided only by 400 & 4....???
Why don't other no.....
Give me reason
Can you help me :)
Kya hi confuse kiya hai apne
Kya chhutiyaapa sa progrme bnaya hai sir.....itna complex kyun kiya hai...simply jo 4 se divisible hai vo leap yr hai
bro century years like 1700 and 1900 are divisible by 4 but they are not leap years . Only those century years are leap years which are divisible by 400. Hope this helps
sir bitwise operator
visit www.mysirg.com for bitwsie operators
Third
not a good logic
Bakvas
Wrost explanation ever
thank you sir