If Else Control Statements In C: C Tutorial In Hindi #10

  Рет қаралды 1,129,800

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 3 100
@CodeWithHarry
@CodeWithHarry 5 жыл бұрын
Hope you are enjoying this course guys? Like aur Share karna mat bhoolna :)
@allintrends6278
@allintrends6278 5 жыл бұрын
Harry Bhai. aap inke solutions bhi dala karo aur ye batao iski new video after video number 76 kab a rahi hai ya ye course finish ho gaya. pls pls pla🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔
@rahilbadi7641
@rahilbadi7641 5 жыл бұрын
Math and science = 45 Math = 15 Science = 15 #include Int main(){ Int gift; Printf ("enter of the subject you passed "); Printf ("press 1 only math "); Printf ("press 2 only science "); Printf ("press 3 both science and math "); Scanf ("%d", &gift); If (gift=1){ Printed("your gift is a 15 rupees you passed math "); } Else if (gift=2){ Printf("your gift is a 15 rupees you passed science "); } Else if(gift=3){ Printed("your gift is a 45 rupees you passed both science and math "); } Else{ Printf("you enter wrong number "); Printed("try again "); } Return 0; }
@manasranjansatapathy5145
@manasranjansatapathy5145 5 жыл бұрын
Harry bhai nested if ka concept apne kyu nehi padhaya??
@harsharora3535
@harsharora3535 5 жыл бұрын
Very helpful sr
@MohdKashif-rn6jl
@MohdKashif-rn6jl 4 жыл бұрын
Sir isme kya glti h #include int main() { int subject; printf("what subject you passed out ? "); printf("1 Maths "); printf("2 Science "); printf("3 both "); scanf("%d", &subject); //below is the code for giving gift// if(subject
@NaachMore
@NaachMore Жыл бұрын
#include int main() { int a; printf("1 means passed in maths or science 2 means passed in both 3 means failed"); printf(" Enter:"); scanf("%d",&a); if (a==1) { printf("prize is 15"); } else if (a==2) { printf("prize is 45"); } else { printf ("failed"); } return 0; }
@msgayathri8752
@msgayathri8752 2 ай бұрын
# include int main(){ char m ; char s ; printf("Have you passed maths exam (press y for yes and n for no)="); scanf("%c",&m); printf("Have you passed science exam (press y for yes and n for no)="); //you need to give a extra space at the starting of %c for next character to be read //else it will take the same input as the previous character scanf(" %c",&s); if((s=='y') && (m=='y')) {printf("Congrats, you have got 45k rupees"); }else if((s== 'y') && (m== 'n')){ printf("Congrats, you have got 15k rupees"); }else if ((s== 'n') && (m== 'y')){ printf("Congrats, you have got 15k rupees"); }else { printf("Better Luck Next Time"); }return 0;}
@rihanstar723
@rihanstar723 2 ай бұрын
@@msgayathri8752 logic is harder
@Aakash07828
@Aakash07828 Ай бұрын
not getting
@Aakash07828
@Aakash07828 Ай бұрын
@@msgayathri8752 only 45 dena tha 45k nhi , normally if else say bhi to possible h?
@Intrepid986
@Intrepid986 28 күн бұрын
Wonderful with short code it is superb result
@harshitrao8729
@harshitrao8729 Ай бұрын
int main() { int subject; printf("enter 1 for science "); printf("enter 2 for maths "); printf("enter 3 for both"); printf("enter your subject number :"); scanf("%d", &subject); if (subject==1 || subject==2) { printf("your gift is of $15"); } else if(subject==3) { printf("your gift is of $45"); } else { printf("enter a valid subject number and try again"); } return 0; }
@sumitbaghel7250
@sumitbaghel7250 4 жыл бұрын
#include int main() { int a; printf("Enter How many Subject you passed "); printf("Enter 1 if you passed maths "); printf("Enter 2 if you passed science "); printf("Enter 3 if you passed both math and science "); scanf("%d",&a); if(a==3) { printf("Congratulations You won Rs.45"); } else if(a==2||a==1) { printf("Congratulations You won Rs.15"); } else { printf("Sorry You don't won anithing"); } }
@shetkari_7777
@shetkari_7777 2 жыл бұрын
Nice
@deeptiranjolkar1864
@deeptiranjolkar1864 2 жыл бұрын
Thanks man fir this❤️
@sumitbaghel7250
@sumitbaghel7250 2 жыл бұрын
@@deeptiranjolkar1864 🙏
@sumitbaghel7250
@sumitbaghel7250 2 жыл бұрын
@@shetkari_7777 🙏
@lsdxsaurabh2798
@lsdxsaurabh2798 2 жыл бұрын
Thank you bhai
@ayushchauhan3097
@ayushchauhan3097 2 жыл бұрын
#include int main(){ int subject; printf("Which subject did you passed " "1.Maths & Science " "2.Science " "3.Maths "); scanf("%d", &subject); if (subject==1) { printf("CONGRATS! Your prize is 45"); } else if (subject==2) { printf("CONGRATS! Your prize is 15"); } else if (subject==3) { printf("CONGRATS! Your prize is 15"); } return 0; }
@allrounderboy905
@allrounderboy905 Жыл бұрын
❤❤
@allrounderboy905
@allrounderboy905 Жыл бұрын
Very helpful
@vibhakarjoshi7249
@vibhakarjoshi7249 Жыл бұрын
Thank you so much ❤❤ Very Helpful
@pawannigade9868
@pawannigade9868 Жыл бұрын
🙏🙏
@DcMicroDiy
@DcMicroDiy Жыл бұрын
add else { printf("Wrong entry try again:"); }@innovation2344
@rajputfitness8641
@rajputfitness8641 2 жыл бұрын
#include int main (){ int a; printf("In how many sub you got passing marks "); printf("enter 1 if pass in maths "); printf("enter 2 if pass in science "); printf("enter 3 if pass in both "); scanf("%d",&a); if(a==1||a==2){ printf("congratulations you got ₹15"); } else if(a==3){ printf("congratulations you got ₹45"); } return 0; } I think 🤔 I m late 😅 but still I got what you explain
@anugaming4625
@anugaming4625 2 жыл бұрын
👍🏻
@rajputfitness8641
@rajputfitness8641 2 жыл бұрын
@@laiqaasif4312 kya Kamal ha 😂
@ujjwalkumar9532
@ujjwalkumar9532 2 жыл бұрын
# include int main(){ int number; printf("enter the number "); printf("enter 1 for pcm "); printf("enter 2 for science "); printf("enter 3 for maths "); printf("enter the number "); scanf("%d", &number); if(number==1){ printf("you got 50 points "); } else if(number==2){ printf("you got 20 points "); } else if(number==3){ printf("you got 20 points "); } else{ printf("invalid"); } return 0; } Check this out...
@AmitSharma-nv2oj
@AmitSharma-nv2oj 2 жыл бұрын
Bro can you please help if i want to make my user enter maths science as input what should i do? Please reply
@AmitSharma-nv2oj
@AmitSharma-nv2oj 2 жыл бұрын
@@ujjwalkumar9532 Bro can you please help if i want to make my user enter maths science as input what should i do? Please reply
@blessedthoughts437
@blessedthoughts437 4 жыл бұрын
#include int main(int argc, char const *argv[]) { int exam; printf ("Which Subject you have clear ", exam); printf ("You have clear maths then press 1 ", exam); printf ("You have clear science then press 2 ", exam); printf ("You have clear both subjects then press 3 ", exam); scanf ("%d",&exam); if (exam==1) { printf("you won 15 rupee"); } else if (exam==2) { printf("you won 15 rupee"); } else if (exam==3) { printf("you won 45 rupee"); } return 0; }
@athletefitness716
@athletefitness716 3 жыл бұрын
You are great also
@vanshitamishra3896
@vanshitamishra3896 3 жыл бұрын
I tried yours..but idk why my 2nd else if statement is not working I.e. if I write 2nd else if statement in 1st else if position it works correctly but as soon as I write the 2nd else if it shows error ..hope I have made my query clear ..help
@FaisalAli-kx6nv
@FaisalAli-kx6nv 3 жыл бұрын
Great
@shubhisaxena2725
@shubhisaxena2725 3 жыл бұрын
how did you comeup with the idea of this code I wasn't able to think like this
@adityarathod504
@adityarathod504 3 жыл бұрын
bro the only mistake is ....u don't have to assign "exam" after the statement you have entered,we add if we want to assign that value in it using %d.
@purabsinghhh7839
@purabsinghhh7839 4 жыл бұрын
Sir you deserve a million of subscriber ❤
@prasadyeole7363
@prasadyeole7363 3 жыл бұрын
@Dèvil subho 😂see the dates
@atulchoker8527
@atulchoker8527 3 жыл бұрын
@@prasadyeole7363 yes....
@dhruv4724
@dhruv4724 3 жыл бұрын
Done
@obito3207
@obito3207 3 жыл бұрын
He has now
@anjaliojha5999
@anjaliojha5999 3 жыл бұрын
now, our harry bhai is near to 2 M subscribers
@crcbheskatri6045
@crcbheskatri6045 3 жыл бұрын
no one can defeat you in teaching programming. thank you.
@aditya._.official
@aditya._.official 4 жыл бұрын
भाई आपका पढ़ाने का तरीका बहुत ही अच्छा है । हम आपका किस तरह से शुक्रिया अदा करे 🙏🙏
@satyamgupta2953
@satyamgupta2953 4 жыл бұрын
Video ko share karke
@aditya._.official
@aditya._.official 4 жыл бұрын
@@satyamgupta2953 जरूर मेरे भाई ☺️
@Tushhar_0019
@Tushhar_0019 3 жыл бұрын
i3 10th gen laptop coading k liye chalega kay please koi to batao almost 5 year
@yashvendra_singh
@yashvendra_singh 3 жыл бұрын
@@Tushhar_0019 chalega Bhai Mere to mobile me hi chalta h😂😂
@Adventure_with_brothers
@Adventure_with_brothers 3 жыл бұрын
@@Tushhar_0019 nai chalega tere pass paise he to i5 hi le nahi he to i3 le
@pksingh3589
@pksingh3589 4 жыл бұрын
Hello harry, You are doing very well. I have not seen C so simple ever. You made it so simple to learn. You are doing such a amazing work for students and people who want to clear their concept using your tutorial. I am technical Engineer in govt job. i was trying to learn C from last one year for making good logical program and want to learn to burn this program on arduino board. But always getting confused. You have made my mind so simple to learn C and make me crazy to learn more & more. Keep it up harry bro. All you have presented in desi bhasha which shows that a friend is teaching us. You are such a real hero. From my side you are a nobel prize winner.......
@pthegreat1104
@pthegreat1104 3 жыл бұрын
it is C not C++
@pksingh3589
@pksingh3589 3 жыл бұрын
@@pthegreat1104 thanks for making it correct
@TejendraSingh-w4q
@TejendraSingh-w4q Жыл бұрын
To all those who do are not able to code the question here is the answer #include int main() { int subject; printf("The list of subjects which you have passed has been given below "); printf("1. Science only 2. Maths only 3. Both Science and Maths "); printf("Choose one of the options above: "); scanf("%d", &subject); if (subject == 1) { printf("Hurrayy! You have won 15 rupees"); } else if (subject == 2) { printf("Hurrayy! You have won 15 rupees"); } else if (subject == 3) { printf("Hurrayy! You have won 45 rupees"); } else { printf("You have made an invalid choice!"); } return 0; } Challenge accepted and solved also Harry bhaii
@janhvinarayan1633
@janhvinarayan1633 Жыл бұрын
wow it's working, i tried with string input but it didn't work unfortunately, I didn't think like this, you're smart
@shahbj801
@shahbj801 11 ай бұрын
what if he has failed in both better option is using operatorslike && and || for maths and sci and maths or sci and use else if he has failed in both
@PoeticJai
@PoeticJai 11 ай бұрын
#include int main() { /* shayad character datatype ko aise krte hain value assign like 'a' */ int subject1; int subject2; /* 1 is maths 2 is science */ printf("enter the subjects in which you have excelled "); scanf("%d %d", &subject1,&subject2); if(subject1 == 1 && subject2 != 2) { printf("you get 15 rupees ! "); } else if(subject1 != 1 && subject2 == 2) { printf("you get 15 rupees ! "); } else if (subject1 == 1 && subject2 == 2) { printf("you get 45 rupees "); } else { printf("you get nothing"); } return 0; } i know its not the best one but mine is like this @@janhvinarayan1633
@PoeticJai
@PoeticJai 11 ай бұрын
#include int main() { /* shayad character datatype ko aise krte hain value assign like 'a' */ int subject1; int subject2; /* 1 is maths 2 is science */ printf("enter the subjects in which you have excelled "); scanf("%d %d", &subject1,&subject2); if(subject1 == 1 && subject2 != 2) { printf("you get 15 rupees ! "); } else if(subject1 != 1 && subject2 == 2) { printf("you get 15 rupees ! "); } else if (subject1 == 1 && subject2 == 2) { printf("you get 45 rupees "); } else { printf("you get nothing"); } return 0; } i know its not the best one but mine is like this @@shahbj801
@DhirendraMishra-xr5yw
@DhirendraMishra-xr5yw 11 ай бұрын
Bhai tumne jo code bheja h vo opertate nhii ho paa rha h result kuch dikha hi nhii rha h
@vijaybindra7320
@vijaybindra7320 5 жыл бұрын
Bro please teach algorithm and it's flowchart. Its a request.... You teach very well.. Thank you for guidance
@shivrajanand2002
@shivrajanand2002 3 жыл бұрын
literally these free educational videos are bringing back the main essence of education: "Available to all and no price to pay"
@pythonkrishna290
@pythonkrishna290 Жыл бұрын
you should have given the quiz solution instead of these.
@Josuke217
@Josuke217 Жыл бұрын
@@pythonkrishna290 lol
@fozii-he1ql
@fozii-he1ql 6 ай бұрын
#include int main() { int maths, science; printf("enter 1 if you have passed in science 0 otherwise"); scanf("%d",&science); printf("enter 1 if you have passes in maths 0 otherwise"); scanf("%d",&maths); if(maths && science ){ printf("you have won 45 rs prize "); } else if(maths || science){ printf("you have won 20 rs prize "); } else{ printf("sorry you have not won any prize"); } return 0; } its not best but it is working💫
@deltafarhan6814
@deltafarhan6814 4 ай бұрын
Good one man
@shubhamjaiswal2322
@shubhamjaiswal2322 5 жыл бұрын
#include int main(){ int a; printf("Which of the subjects have you passed? "); printf("Type 1 for maths, 2 for Science, 3 for both maths and science "); scanf("%d", &a); if(a == 1){ printf("Wow!, you have won the prize of Rs15 for clearing the exam of Maths "); } else if(a == 2){ printf("Wow!, you have won the prize of Rs15 for clearing the exam of Science "); } else if(a == 3){ printf("Wow!, you have won the prize of Rs45 for clearing the exam of Maths and Science "); } else { printf("Sorry! this choice is not given please select from the above given options. "); } return 0; }
@sunilchhetariya
@sunilchhetariya 5 жыл бұрын
You are good programer
@siddharthsuyal888
@siddharthsuyal888 5 жыл бұрын
you code is wrong ! this is the write one #include int main() { int marks; printf("select the subj code in wich you are pass. "); printf("math=0 "); printf("science=1 "); printf("both=5 "); scanf("%d",&marks); if (marks
@jaidevsaini9790
@jaidevsaini9790 4 жыл бұрын
😎
@mr.unknown9219
@mr.unknown9219 3 жыл бұрын
U r right
@mr.unknown9219
@mr.unknown9219 3 жыл бұрын
@@siddharthsuyal888 wrong
@InfolkWell
@InfolkWell 5 жыл бұрын
#include Int main () { Int age; Printf("enter your age "); Scanf("%d",&age); If (age>18) Printf(you can drive); Else { Printf ("you cannot drive"); } Return 0;
@nirajgurjar6843
@nirajgurjar6843 5 жыл бұрын
After Return 0 You Have To Give These } Return 0 }
@AjoAjo-yt3uo
@AjoAjo-yt3uo Жыл бұрын
I have not even started watching him yet 😭 but his channel shouts " i wanna be the best thing that's ever happened to you" Thank you❤
@way4pc740
@way4pc740 5 жыл бұрын
best pogramming channel in youtube
@GoldyKumari-ky4bk
@GoldyKumari-ky4bk 3 жыл бұрын
include int main() { int num; printf("enter the number"); scanf("%d",&num); if(num==50) { printf("number is equal to 50"); } else if(num >= 50) { printf("number is greater than 50"); } else (num
@shivanipatwa4709
@shivanipatwa4709 Жыл бұрын
cant we direct write name of the subject like maths and science And code like this.... #include int main () { int maths , science; printf("enter the name of subject you passed b/w maths and science"); scanf("%d %d" , &maths ,&science); if (maths && science) { printf(" you have awarded gift of 45 rupees"); } else if (maths) { printf("you have awarded gift of 15 rupees "); } else (science) { printf("you have awarded gift of 15 rupees"); } return 0; }
@MiniMarvelsStudio-o9s
@MiniMarvelsStudio-o9s 2 жыл бұрын
Thanks Harry. This is my first programming language and you make this very easy.
@kapilchaudhary1079
@kapilchaudhary1079 3 жыл бұрын
Bhai challage ka code bhi share kr diya kro jitne bhi diye h check krne k liye . Wese bhai maja aa rha h Printf("maza aa rha h");
@skytoucher6157
@skytoucher6157 5 жыл бұрын
... i was confused how should i start . those tutorial on websites are very complicated and terrible . but your body language and expressing techniques are damn amezing .
@Anas-Ansari999
@Anas-Ansari999 3 жыл бұрын
lol, spelling of amazing +__+
@FunUnlimitedHKD
@FunUnlimitedHKD 5 жыл бұрын
Sir I am a student of BCA 1st sem and today i watch your video and i am very happy that i found my channel love you sir and i like your explanation
@ayushneupane9819
@ayushneupane9819 3 жыл бұрын
I did the Quiz brother and i passed. I am going forward in my syllabus all because of you. Thankyou so much.
@saeekulkarni4481
@saeekulkarni4481 3 жыл бұрын
Can you provide that quiz program code
@aqibsher1628
@aqibsher1628 3 жыл бұрын
@@saeekulkarni4481 yes pls
@palakkpatel
@palakkpatel 3 жыл бұрын
Yess pls let us know how you did that assignment
@Sneha-ow3ip
@Sneha-ow3ip Жыл бұрын
challenge accepted sir😌🙌❤ here is the code of your qwestion👇 #include int main(){ int subject; //1 use for science //2 use for math //3 use for science math printf("choose 1 for science, 2 for math, and 3 for science-math "); printf ("enter your subject code you have passed "); scanf("%d ",&subject); if (subject==1){ printf("you got 15 rupees"); } else if (subject==2){ printf("you got 20 rupees"); } else if (subject== 3){ printf("you got 45 rupees"); } else{ printf("you entered wrong subject code"); } }
@uk01..75
@uk01..75 Жыл бұрын
Good 🐱
@faizasattar5422
@faizasattar5422 Жыл бұрын
I couldn't find the code on website which Harry provided for this problem ? Can you help me finding that ?
@shivanipatwa4709
@shivanipatwa4709 Жыл бұрын
cant we direct write name of the subject like maths and science And code like this.... #include int main () { int maths , science; printf("enter the name of subject you passed b/w maths and science"); scanf("%d %d" , &maths ,&science); if (maths && science) { printf(" you have awarded gift of 45 rupees"); } else if (maths) { printf("you have awarded gift of 15 rupees "); } else (science) { printf("you have awarded gift of 15 rupees"); } return 0; }
@nikhilrajput9877
@nikhilrajput9877 10 ай бұрын
@@shivanipatwa4709 thanks 😊
@aadityashahilgaming911
@aadityashahilgaming911 4 жыл бұрын
i solve it myself #include int main() { int Math, science; printf("Enter your mark of Math "); scanf("%d", &Math); printf("Enter your mark of science "); scanf("%d", &science); printf("you have entered %d as your mark of Math ", Math); printf("you have entered %d as your mark of science ",science); if (Math>=40,science>=40) { printf("you have passed both subject"); printf("you will be given RS 100"); } else if (Math40) { printf("you have passed in science"); printf("you have failed in Math"); printf("you will be given just RS 50"); } else if (Math>40,science
@pramodsinghkaviya774
@pramodsinghkaviya774 4 жыл бұрын
Bro check your code once again
@sudippal2187
@sudippal2187 4 жыл бұрын
/n and else program wrong
@ua8180
@ua8180 4 жыл бұрын
@@sudippal2187/n nhi bhai aisa hai command
@sudippal2187
@sudippal2187 4 жыл бұрын
@@ua8180 sory. I mean nehi hai. Program m
@sudippal2187
@sudippal2187 4 жыл бұрын
Else ("You failed both subject");
@akaaryanyt9756
@akaaryanyt9756 4 жыл бұрын
A switch statement tests the value of a variable and compares it with multiple cases. Once the case match is found, a block of statements associated with that particular case is executed. Each casein a block of a switch has a different name/number which is referred to as an identifier.
@amezingcreation7606
@amezingcreation7606 2 жыл бұрын
#include #include int main() { int m,s; printf("the result of math:"); scanf("%d",&m); printf("the result of science:"); scanf("%d",&s); if(m>30 && s>30){ printf("he gifted as 45 ruppes ");} else if(m>30 || s>30){ printf("he gifted as 15 ruppes ");} else printf("you fail "); }
@br_al0ne
@br_al0ne 2 жыл бұрын
Hi i can contact you
@amezingcreation7606
@amezingcreation7606 2 жыл бұрын
@@br_al0ne message me
@gulshairkhan4996
@gulshairkhan4996 Жыл бұрын
Nyc bruh
@gautambindal9438
@gautambindal9438 Жыл бұрын
perspective
@sann15thbatch
@sann15thbatch Жыл бұрын
beautiful
@Fzon-232
@Fzon-232 Жыл бұрын
#include // maths and science -45 // science -15 // maths -15 int main () { int sub ; printf("Enter which all subject you passed : "); printf("1 for maths and science 2 for maths 3 for science : "); scanf("%d",&sub); if(sub==1) { printf("45 rupee gift "); } else if (sub==2) { printf("15 rupee gift "); } else if(sub==3) { printf("15 rupee gift "); } else { printf("Wrong choice :"); } }
@rohitashrohitashkhan9735
@rohitashrohitashkhan9735 Жыл бұрын
Waah bro
@sangeetha6691
@sangeetha6691 Жыл бұрын
👆🏻👍🏻
@darwing2912
@darwing2912 Жыл бұрын
@@sangeetha6691 it's wrong
@darwing2912
@darwing2912 Жыл бұрын
@@sangeetha6691 that the right code #include #include int main() { char maths[50]; // declaration of char array char science[50]; // declaration of char array printf("Give Answer in Yes or NO "); printf("Are you pass in Maths "); scanf("%s", &maths); printf("What's about Sceince, are you pass in Science "); scanf("%s", &science); // comparing both the strings using strcmp() function if ((strcmp(maths,"yes")==0) && (strcmp(science,"yes")==0)){ printf("Welldone my boy You got 45$ for this acheivement"); } else if ((strcmp(maths,"no")==0)&&(strcmp(science,"yes")==0)){ printf("You only pass in sceince You got only 15$"); } else if ((strcmp(maths,"yes")==0)&&(strcmp(science,"no")==0)){ printf("You only pass in Maths You got only 15$"); } else{ printf("You fail in both subject You need to work hard why are wasting your parents money"); } return 0; }
@vishalverma-sg6vm
@vishalverma-sg6vm Жыл бұрын
bhai code copy nhi ho rha
@adityarajkumawat1015
@adityarajkumawat1015 5 жыл бұрын
7 th Awesome Video Keep teaching Harry bhai.
@mohdabdulmuqtadir1079
@mohdabdulmuqtadir1079 3 жыл бұрын
Sir explanation ever . U deserve millions of subscribers and thank u very much for giving us such a good explanation . Love from Hyderabad
@Legendaryshort
@Legendaryshort Жыл бұрын
The code :- #include int main(){ int subject; //1 use for science //2 use for math //3 use for science math printf("choose 1 for science, 2 for math, and 3 for science-math "); printf ("enter your subject code you have passed "); scanf("%d ",&subject); if (subject==1){ printf("you got 15 rupees"); } else if (subject==2){ printf("you got 20 rupees"); } else if (subject== 3){ printf("you got 45 rupees"); } else{ printf("you entered wrong subject code"); } }
@allrounderboy905
@allrounderboy905 Жыл бұрын
Mera Scanf("%d ", &subject) ; %d percent d ke sath backslash n lagane par jab terminal me 1 type kar raha hu to wo kaam nahi kar raha hai.
@chayandas8204
@chayandas8204 Жыл бұрын
wrong
@shubhamnarkhede2247
@shubhamnarkhede2247 Жыл бұрын
@@allrounderboy905 scanf(%d, &subject);----- scanf main backslash n lagane ki jarurat nahi hain
@Eshanshah-d3x
@Eshanshah-d3x 2 ай бұрын
Thanks bro cause of u i don't have to waste 10k on courses . And still this is the most detailed course on c there is thanks man
@kevinlambor5589
@kevinlambor5589 4 жыл бұрын
I am a 13y/o but still I am able to learn C from this playlist of code with harry. Thanks😄
@ogbunnygaming2732
@ogbunnygaming2732 3 жыл бұрын
me also
@aryantiwari6570
@aryantiwari6570 3 жыл бұрын
Then I am 2 year old .
@aanish009
@aanish009 3 жыл бұрын
@@aryantiwari6570 then I am 1 yr
@ashishranjan1306
@ashishranjan1306 3 жыл бұрын
i am not even born
@anubhavsharma6789
@anubhavsharma6789 3 жыл бұрын
i don't know who i am, and where i am but still i am able to learn c
@ankitagarwal7571
@ankitagarwal7571 4 жыл бұрын
Challenge accepted #include int main() { int maths, science; printf ("passing marks for each subject is 33 out of 100 "); printf ("enter your marks in maths: "); scanf ("%d", &maths); printf ("enter your marks in science: "); scanf("%d", &science); if(maths > 33 && science > 33) {printf ("you will got a gift of 45/- rs. "); } else{if(maths>33) {printf ("you will got a gift of 15/- rs. for maths "); } if(science>33) {printf ("you will got a gift of 15/- rs. "); }} return 0; }
@missqueen3877
@missqueen3877 2 жыл бұрын
Mean hume numbering deni hogi iske bina code nhi hoga
@sonammishra9965
@sonammishra9965 2 жыл бұрын
@@missqueen3877 its not necessary..u can assume it in ur program if u wnt ...if nt u cn run the code without assuming ....btt if uh assume the marks (no.) It will be easy to run to uh.. Otherwise uh hv to mention no. Of passing in sub in ur output .....
@missqueen3877
@missqueen3877 2 жыл бұрын
@@sonammishra9965 okay thank you🌹 I will try
@irctc149k5
@irctc149k5 2 жыл бұрын
Noice, Try once more using 'or 'operator for last 2 else
@tahiraismail6942
@tahiraismail6942 4 жыл бұрын
You are too good person..... seriously I got alot of help from your lectures Allah bless you alot alot thank you so much ❤️👍💯!!!
@light7560
@light7560 3 жыл бұрын
You are the best teacher Harry bhai ❤
@dharmikgohel2663
@dharmikgohel2663 4 жыл бұрын
The best moment is 22:34
@financialplanner3195
@financialplanner3195 4 жыл бұрын
printf("harry is so great");
@prachi8225
@prachi8225 3 жыл бұрын
printf("Harry is rocking 🔥🔥");
@rakhikumari6035
@rakhikumari6035 4 жыл бұрын
He is amazing man👍...❤️
@itsritika3561
@itsritika3561 4 жыл бұрын
Keep teaching like this ...sir...and thankyou for such a great effort..👍👍
@prateikpati1
@prateikpati1 4 жыл бұрын
Your code is Run.... (Print the type of gift you are giving to the) Please send me solution
@shivamsingh-rk4rs
@shivamsingh-rk4rs 4 жыл бұрын
Plz provide me code of this
@shaikrohith6988
@shaikrohith6988 2 жыл бұрын
challenge accepted and successfully completed program
@darshanadeshmukh8114
@darshanadeshmukh8114 3 ай бұрын
hello harry bhai I am btech ty student.. maine sab programming languages sikhi python java cpp r ..par muje c nahi samaj ayi kyuki woh hamara sem online me gaya ...main bahot try ki lekin finally apki course se muje samaj ayi..thank you for your free cources...🙏😇😇
@rohitjain282
@rohitjain282 5 жыл бұрын
Challenge accepted, GREAT WORK sir, I will surely try to complete all the courses you are teaching
@abhishekjadhav6756
@abhishekjadhav6756 3 жыл бұрын
Bhai code run hua aap ka?
@rahat-tech6382
@rahat-tech6382 Жыл бұрын
Updated Code Please ignore previous one :- #include int main() { int result; printf("Type 0 for pass in both subject "); printf("Type 1 for pass in maths subject "); printf("Type 2 for pass in Science subject "); printf("Please enter the subject passed ?"); scanf("%d", &result); if (result == 0) { printf("You will get 45 rs"); } else if (result == 1) { printf("You will get Rs25"); } else if (result == 2) { printf("You will get 15 rs"); } else { printf("Please enter Valid code"); } return 0; }
@irahulchaudhary
@irahulchaudhary Жыл бұрын
#include int main (){ int result; printf("Enter 0 if you passed in both Maths and Science "); printf("Enter 1 if you passed in Maths only "); printf("Enter 2 if you passed in Science only Enter - "); scanf("%d",&result); if (result==0) printf(" Congratulations, You got 45 Rs"); else if(result==1||result==2) printf(" Congratulations, You got 15 Rs"); else printf("0,1&2 hi dalna h bhai"); }
@sudhanshoo_o
@sudhanshoo_o Жыл бұрын
#include /*program syntaxes for if elseif and others*/ int main() { int res1, res2; printf("Have you passed Maths exam?, if yes type 1, else type 2. "); scanf("%d", &res1); printf("Have you passed Science exam?, if yes type 1, else type 2. "); scanf("%d", &res2); if(res1==1 && res2==1) { printf("You have recieved Rs.45 as reward for clearing both the exams. "); } else if((res1==1 && res2==2) || (res1==2 && res2==1)) { printf("Your have recieved Rs.15 as reward for clearing 1 exam "); } else { printf("You have failed both exams or invalid input "); } return 0; }
@sach_in_sigma
@sach_in_sigma Жыл бұрын
Bro why don't you made the code so that we can add the name of subjects instead of 0s and 1s
@kshitij.rajvanshi.9
@kshitij.rajvanshi.9 Жыл бұрын
@@sudhanshoo_o bro.. tum yaha par koi bhi number input doge else condition ke liye, output toh wahi dega na...You have failed in both exam.. for example tumne number 1,2 diye hai right..., to agar me input 5 dedun or output ye ara hai tab toh galat hua hua na
@kshitij.rajvanshi.9
@kshitij.rajvanshi.9 Жыл бұрын
int passSubjects = 0; printf("in which subects you are pass "); printf("0 = failed in all subjects 1 = Maths 2 = Science 3 = Maths and Science both: enter a number to know you gift "); scanf("%d", &passSubjects); if ( passSubjects < 0 || passSubjects > 3) { printf("Invalid input. Please enter a number between 0 and 3. "); return 1; // Exit with an error code } if(passSubjects == 1){ printf("you'll get 100 rupees only"); } else if(passSubjects == 2){ printf("you'll get 100 rupees only"); } else if (passSubjects == 3){ printf("you will get 500 rupees for you success "); } else { printf("you are failed, not outing for a week "); } return 0;
@akanshisingh2119
@akanshisingh2119 Жыл бұрын
sir in the assignment theres a question write a program to find wheth a student is pass or fail, if it requires total of 40 percent and at least 30 percent in each sub to pass. assume 3 sub and take marks as an input from the user #include int main() { int a,b,c,i,j; scanf("%d %d %d",&a, &b, &c); printf("Enter a: %d ", a); if (a>33) { printf("You are pass in the sub %d ", a); } else { printf("You are fail in the sub "); } printf("Enter b: %d ", b); if (b>33) { printf("You are pass in the sub %d ", b); } else { printf("You are fail in the sub/n"); } printf("Enter c: %d ", c); if (c>33) { printf("You are pass in the sub %d ", c); } else { printf("You are fail in the sub "); } i = (a+b+c); scanf("%d", &i); j = i/300; scanf("%d", &j); printf("your total score is:%d", j); if (j>40) { printf("You are pass %d", j); } else { printf("You are fail"); } return 0; } can u pls help me with correcting the code?
@pramannagyal495
@pramannagyal495 Жыл бұрын
#include int main() { int subject; printf("enter the subject " "1.mathsandscience" "2.maths" "3.science" ); scanf("%d", &subject); printf("you have enter %d as subject ", subject); if(subject==1) { printf("congrats you have won $45"); } else if (subject==2) { printf("congrats you have won $15"); } else if (subject==3) { printf("congrats you have won $15"); } return 0; } thanku harry bahiya
@Tech_world17
@Tech_world17 3 жыл бұрын
Thank you very much sir for giving me this information about if ,else statement . you way of teaching is very good ❤👌❤👍
@sujaldubey6936
@sujaldubey6936 3 жыл бұрын
Challenge accepted 👍 Tried but failed but learned from it
@heeru379
@heeru379 4 жыл бұрын
printf("Challenge accepted"); . . . . . . . . . . . . . . . . . Compiler run . . . . . . . . . . . . *Challenge accepted*
@SHIVANISETHI-h3v
@SHIVANISETHI-h3v 11 ай бұрын
I used Switch instead of if-else.. #include int main() { int subject; printf("Enter the subject you passed in ", subject); printf("1.science only 2. maths only 3. both maths and science "); printf("Choose one of the options above:"); scanf("%d", &subject); switch (subject){ case 1: printf("yay! you have won 15 rupees"); break; case 2: printf("yay! you have won 15 rupees"); break; case 3: printf("yay! you have won 45 rupees"); break; default: printf("you have entered invalid option"); break; } return 0; }
@priyamgupta2779
@priyamgupta2779 2 жыл бұрын
#include int main() { int gift; printf("Enter the gift price"); scanf("%d",&gift); if(gift==45){ printf("gift giving those student pass both the subject"); //45 and 15 is a price } else if(gift==15){ printf("gift giving those Student pass math or science"); } }
@pagalgameryt3734
@pagalgameryt3734 Жыл бұрын
Bhai ye right hai kya
@sarthakpant8022
@sarthakpant8022 4 жыл бұрын
Bhaiya jo aapne quiz diya ya vo mere according aise solve nhi ho skta us me hume maths aur science dono k liye ek character assingn krna hoga aur if else k ander use condition m use krna hoga
@swagatadas7046
@swagatadas7046 3 жыл бұрын
i am learning c with ur lectures and believe me bro u r awesome. i have liked ur videos and subscribed ur channel and also shared with my friends. thank u.
@MusicViadixit
@MusicViadixit 3 жыл бұрын
Challenge accepted🔥🔥
@ayushbisht4051
@ayushbisht4051 3 жыл бұрын
Program bna?
@47.shivanktiwari23
@47.shivanktiwari23 3 жыл бұрын
bro then pl tell the programm
@ayushbisht4051
@ayushbisht4051 3 жыл бұрын
@@47.shivanktiwari23 mera bngya ab
@47.shivanktiwari23
@47.shivanktiwari23 3 жыл бұрын
@@ayushbisht4051 toh bhai code toh bata do
@ayushbisht4051
@ayushbisht4051 3 жыл бұрын
@@47.shivanktiwari23 whatspp num do usme bhjta hu
@Ammarkoka
@Ammarkoka 5 жыл бұрын
Challenge accepted! Bro little bit of errors but finally i solved it 😍🔥
@anujagnihotri02
@anujagnihotri02 4 жыл бұрын
Show me answer
@Ammarkoka
@Ammarkoka 4 жыл бұрын
@@anujagnihotri02 bhai 8 months phle ka code raha hai kabhi kisi ke pass? Now i m dirty my hands on python and ML
@anujagnihotri02
@anujagnihotri02 4 жыл бұрын
Ha yaar ye to maine dekha hai tumhara comment bhi 8 months pahle ka hai
@anujagnihotri02
@anujagnihotri02 4 жыл бұрын
@@Ammarkoka wo kya hai na maine bahut kosis kiya par aaya nhi to socha tumhe bolu
@PriyaGupta-sg4sm
@PriyaGupta-sg4sm 2 жыл бұрын
I was worried because I couldn't write a program which takes values from the user with code runner extension, and I thought there must be some problem while it was installed. But in this video i got to know that we have to change the settings in order to run it LMAO.
@chanddeep1992
@chanddeep1992 2 ай бұрын
#include int main() { int pass; printf("Enter 1 if passed in maths "); printf("Enter 2 if passed in science "); printf("Enter 3 if passed both in maths and science "); printf("Enter your choice "); scanf("%d", &pass); if (pass==1) { printf("You got 15 marks passed only in maths"); } else if (pass==2) { printf("You got 15 marks passed only in science"); } else if (pass==3) { printf("You got 45 marks passed both in maths and science"); } else { printf("Invalid input"); } return 0; } exercise completed
@rahulgoswami521
@rahulgoswami521 2 жыл бұрын
Challenge accepted and done in 5 min Thank you sir for guuidence
@shilajito.p.9639
@shilajito.p.9639 Жыл бұрын
Bhai kaise kiya plz help mee
@rahulgoswami521
@rahulgoswami521 Жыл бұрын
@@shilajito.p.9639 #include int main() { int marks; printf("Enter 0 for both science and math, 1 for science ,2 for maths "); printf("Enter by no. which exams you pass : "); scanf("%d",&marks); if(marks==0){ printf("Congratulation you passed 2 subject & Your gift will be 45 $"); } else if(marks==1){ printf("You passed science & Your gift will be 15 $"); } else if(marks==2){ printf("You passed math & Your gift will be 15 $"); } else{ printf("Wrong input! no data available"); } return 0; }
@shilajito.p.9639
@shilajito.p.9639 Жыл бұрын
Thnx bro
@manish2328
@manish2328 2 жыл бұрын
This course is very helpful and my concepts in C are getting better also the notes you provide is amazing ❤
@vishnukumarmahto1055
@vishnukumarmahto1055 Жыл бұрын
Notes kaha pee hai bhai
@chirkutkijhopdi9721
@chirkutkijhopdi9721 Жыл бұрын
#include int main() { int results; printf("Type '1' if you have passed in maths or science only, Type '2' if you have passed in maths and science both "); scanf("%d",&results); if (results==1){ printf(" congratulations! you have recieved a 15rs gift voucher. "); } else if(results==2){ printf(" congratulations!! you passed both the exams, you have recieved a 45rs gift voucher. "); } return 0; } Thank you Harry bhaiya.
@kenysheikh2041
@kenysheikh2041 3 жыл бұрын
Loved your work! Keep teaching..
@sumitthorat7804
@sumitthorat7804 2 жыл бұрын
Heyyy
@rijudasgupta7533
@rijudasgupta7533 4 жыл бұрын
#include int main() { int sub; printf("Enter the subject that you passed out:"); scanf("%d",&sub); switch(sub) { case 1: printf("You have passed in science and you have won Rs.15 "); break; case 2: printf("You have passed in mathematics and you have won Rs.15"); break; case 3: printf("You have passed in both mathematics and science and you have won Rs.45 "); break; default: printf("Sorry you are failed"); } return 0; }
@sahithyavadiyala1962
@sahithyavadiyala1962 4 жыл бұрын
Sir can you please give the program that you gave as assignment??
@beinghomie
@beinghomie 3 жыл бұрын
Challenge accepted and also I have completed the Multiplication table challenge 😊
@anuragaryan5783
@anuragaryan5783 3 жыл бұрын
Solution h ky bro..share kr too mera thora sa error de rha ...😒
@visualediton
@visualediton 3 жыл бұрын
ha bro sulotion dena...... mera bhi error araha hai...!
@harishpatil3988
@harishpatil3988 3 жыл бұрын
Bhai mobile Main code run Krna hoga toh app batao na plz
@sawansharma7567
@sawansharma7567 3 жыл бұрын
Coding and Programming ka HARRY POTTER❣️❣️❣️ Sir BuG(Voldemort) Ko KhtM krna Ha . HaiL Harry😌❣️
@aakash9025
@aakash9025 5 жыл бұрын
Luv u bro 👍 . YOU R PERFECT ❤️
@deekshithpoojary9910
@deekshithpoojary9910 4 жыл бұрын
printf("challenge excepted")
@praphullverma
@praphullverma 4 жыл бұрын
You miss the semicolon lol
@anshvashishth2081
@anshvashishth2081 Жыл бұрын
sir this code is correct #include int main(){ int number,pass,science,maths; printf("name of subject in which you have passed "); scanf("%d", &number); if(pass==science,maths){ printf("congrats you won 45 rs"); } else if(pass==science){ printf("congrats you won 15 rs"); } else if(pass==maths){ printf("congrats you won 15 rs"); } else{ printf("you can not won the money prize"); } return 0; }
@AbdulHakeem-b8p
@AbdulHakeem-b8p 10 ай бұрын
Wrong hai beta ji😮😮
@amritachattaraj7200
@amritachattaraj7200 2 жыл бұрын
Challenge accepted and even got correct output 😊
@JyotiKumari-ze9ge
@JyotiKumari-ze9ge 2 жыл бұрын
Can you give me the code of challenge
@srushtiraval410
@srushtiraval410 2 жыл бұрын
please send me the output
@soumyadeepmondal4347
@soumyadeepmondal4347 5 жыл бұрын
#include int main() { int a; printf("enter 1 for pass in Math, enter 2 for pass in Science or enter 3 for pass in Math & Science both:"); scanf("%d", &a); if (a==1) { printf("\acongrats! you won 15 rupee prize!"); } else if (a==2) { printf("\acongrats! you won 15 rupee prize!"); } else if (a==3) { printf("\acongrats! you won 45 rupee prize!"); } else { printf("\asorry you have enter the wrong coise!!"); } return 0; }
@gyanwalatech1787
@gyanwalatech1787 4 жыл бұрын
Well done
@irahulchaudhary
@irahulchaudhary Жыл бұрын
#include int main (){ int result; printf("Enter 0 if you passed in both Maths and Science "); printf("Enter 1 if you passed in Maths only "); printf("Enter 2 if you passed in Science only Enter - "); scanf("%d",&result); if (result==0) printf(" Congratulations, You got 45 Rs"); else if(result==1||result==2) printf(" Congratulations, You got 15 Rs"); else printf("0,1&2 hi dalna h bhai"); }
@brimstone4652
@brimstone4652 4 жыл бұрын
printf("challenge accepted");
@_DhritikaDeka
@_DhritikaDeka 3 жыл бұрын
sir can you give me the link for the solution video of today`s excercise?
@justingray7290
@justingray7290 10 ай бұрын
Bro I’ve seen the same content that you post on KZbin by other people but bhai you are just amazing I just love the way you explain things and you have no idea how big of a help you have been I don’t usually comment but I would like to show you my appreciation and would like to say Thankyou so much bhai Bro fist 🤜
@_devenderpal_
@_devenderpal_ 5 жыл бұрын
Well dne i was waiting for it
@CodeWithHarry
@CodeWithHarry 5 жыл бұрын
Hope you are enjoying!
@pranabbhunia1995
@pranabbhunia1995 4 жыл бұрын
@@CodeWithHarry #include int main() { int sc,ar; printf("enter the science number(pass mark 85)..... "); scanf("%d",&sc); printf("enter the arts number(pass mark 85)..... "); scanf("%d",&ar); if((sc>=0)&&(sc=85) { printf("pass in science with %d ",sc); } } else { printf("not in range..."); } if((ar>=0)&&(ar=85) { printf("pass in arts with %d ",ar); } } else { printf("not in range..."); } if((sc>=85)&&(ar>=85)) { printf("pass in both and got 45 rupees....."); } else if(sc>=85) { printf("pass in science only got 15 rupees"); } else if(ar>=85) { printf("pass in arts only and got 15 rupees only"); } else { printf("better luck next time heheheheehhehehe"); } }
@ekansh6267
@ekansh6267 3 жыл бұрын
Beautifully explained 👌🏻🔥
@jaiveersingh8688
@jaiveersingh8688 Жыл бұрын
#include int main() { int a, b; printf("Here are some rules:- 1---> Yes, 2---> No "); printf(" Have you passed Maths exam:- "); scanf("%d", &a); printf(" Have you passed Science exam:- "); scanf("%d", &b); if (a==1 && b ==1) { printf("You've won Rs. 45"); } else if (a==1) { printf("You've won Rs. 10"); } else if (b==1) { printf("You've won Rs.20"); } else { printf("Study more harder to get rewards."); } return 0; } Loved it.
@deepikachoudhary3424
@deepikachoudhary3424 Жыл бұрын
#include int main(){ int a; int b; printf("your maths marks is : "); scanf("%d",&a); printf("your science marks is : "); scanf("%d",&b); if ((a>20)&&(b>20)){ printf("your prize amount is 45rs"); } else if((a>20)||(b>20)){ printf("your prize money is 20rs"); } return 0; }
@phoenixarts486
@phoenixarts486 4 жыл бұрын
Sir please explain string functions , it is very confusing part.
@AjayKumar-wx5qw
@AjayKumar-wx5qw Жыл бұрын
challenge accepted🙃 i am enjoying this course thanks buddy.
@Partapsbimrah
@Partapsbimrah 5 жыл бұрын
This course starts at the wrong time. Because now my exams started.
@padhle2184
@padhle2184 3 жыл бұрын
but did you learn c or not?
@techplay1
@techplay1 3 жыл бұрын
Checkout c conditional statements on our channel also
@PawanKumar-xn4rn
@PawanKumar-xn4rn Жыл бұрын
#Code /* In this case you have two subjects math and science . if you passed in both subjects you got 45 rupees. If you passed in one subject you got 15 rupees . ..... #include Int main () { Int number; Printf("Entered the number how many subject you passed/n"); Scanf("%d",& number); If(number==2) { Printf("you passed in both subjects, you got it 45 rupees"); } If else (number== 1) { Printf(" you passed in only one subject, you got it 15 rupees"); } Else if(number >=3) { Printf (" Error: please write correct number "); } Else{ Printf (" sorry: You're failed, Do better next time "); } Return 0; }
@rajroxes
@rajroxes 5 жыл бұрын
Hey dear ,please tell me after learn python which platform we use to make a app please help me .. Please sir
@technicaltutorialarena
@technicaltutorialarena 5 жыл бұрын
Please provide me c programming language notes please Harry sir it's a huge request to you sir please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@shraddhapawar5674
@shraddhapawar5674 3 жыл бұрын
Link hai na niche
@379anshmishra2
@379anshmishra2 8 ай бұрын
include int main() { int a; printf("enter 1 if you are pass in maths or enter 2 if you are pass in science or enter 3 if you are pass in both :"); scanf("%d",&a); if(a==1||2) { printf("15"); } else if(a==3) { printf("45"); } else { printf("enter valid number.."); } return 0; }
@akashgupta6254
@akashgupta6254 5 жыл бұрын
Osm❤❤
@motivationalspeakermarathi
@motivationalspeakermarathi 3 ай бұрын
#include int main(void) { int m; printf(" in how many papers you pass "); printf(" press 1 if you pass in math "); printf(" press 2 if you pass in science "); printf(" press 3 if you pass in both math and science "); scanf("%d",&m); if(m==1||m==2){ printf(" congratulations you won 15 rupees price "); }else if(m==3){ printf(" congratulations you won 45 rupees price "); } return 0; }
@nirajgurjar6843
@nirajgurjar6843 5 жыл бұрын
#include int main(){ int a; printf("Which of the following subjects do you passed? "); printf("Type M for Math,S for Science And MS for Both Math And Science "); Scanf(%d, &a); If (a==M){ printf("Congrats! You Have Won Prize Of Rs.15 "); } Else If (a==S){ printf("Wow! You Have One Prize Of Rs.15 "); } Else If ( a==MS){ printf("Excellent You Have Won Biggest Prize Gifted By Us Of Rs.45 "); } Else ( Sorry You Don't Select ); Return 0; }
@banking4932
@banking4932 5 жыл бұрын
bhai %d hoga ya %c hoga.because we are printing the character not integer
@tanyaduggal5637
@tanyaduggal5637 4 жыл бұрын
this code is displaying error
@nirajgurjar6843
@nirajgurjar6843 4 жыл бұрын
@@banking4932 Thanks! But I Think I Am Right
@banking4932
@banking4932 4 жыл бұрын
@@nirajgurjar6843 ya i realised it later that both are correct. thanks
@nirajgurjar6843
@nirajgurjar6843 4 жыл бұрын
@@banking4932 OK!
@satyamraikar5791
@satyamraikar5791 2 жыл бұрын
i was searching for a videos to learn c ++ after so many video i finaly got ur palylist u r the best tearcher
@ashish3942
@ashish3942 2 жыл бұрын
this is for c not c++
@IMPremNishad
@IMPremNishad 4 жыл бұрын
how to output a word like - i enter "subject" then it return " subject " what's the program for this
@bhaveshpradhan1713
@bhaveshpradhan1713 4 жыл бұрын
Please wait for further videos. You will get the solution for this question in topic named array
@ankitsatyal8512
@ankitsatyal8512 5 жыл бұрын
Challenge completed🙏🏻 Ek semicolon ne dimag khrab kr diya 😂😂😂
@sarthakpant8022
@sarthakpant8022 4 жыл бұрын
Bhai solutions bhjio plz
@gymaddicterzz9222
@gymaddicterzz9222 4 жыл бұрын
@Sameer Ranjan where you define subject code in program bro
@footballerssoul1713
@footballerssoul1713 4 жыл бұрын
@Sameer Ranjan bhai tune kaise solve kiya yaar... mujhe to kuchh bhi samajh nahi aaraha kya karu.. bhai tu sirf harry bhai se hi sikhta hai ya phir bahar se bhi class leta hai
@140_milangawande5
@140_milangawande5 4 жыл бұрын
@@footballerssoul1713 usne bss condition lgyi hai agr vo maths k side vla code bhi nahi likha to chlega aur thoda logic apply kr dost
@stym-rj
@stym-rj 4 жыл бұрын
@Sameer Ranjan mast bhai... shi dimag lga diya tmne subject codes daal k
@shubham_skadam
@shubham_skadam 4 жыл бұрын
Hey harry, which theme are you using in visual studio? (Specific theme)
@hardikprajapati8389
@hardikprajapati8389 3 жыл бұрын
Monokai dark soda.
@yasiransari7294
@yasiransari7294 Жыл бұрын
solution: #include int main() { int m,s,a; printf("Enter 1 if u passed in Science: Enter 2 if passed in maths: Enter 3 if passed in both3: "); scanf("%d",&a); if(a==1) printf("Congratulations you passed in science You got 15/-"); else if(a==2) printf("Congratulations you passed in Maths You got 15/-"); else if(a==3) printf("Congratulations you passed in both you got 45"); else printf("Enter valid value"); return 0;
@_code.hunter_
@_code.hunter_ 4 жыл бұрын
If else me "char" Use kyu nahi kar sakte
@talhaali4343
@talhaali4343 3 жыл бұрын
kar sakte hain
@_code.hunter_
@_code.hunter_ 3 жыл бұрын
@@talhaali4343 bahot pahle ka comment he ye
@_code.hunter_
@_code.hunter_ 3 жыл бұрын
@@talhaali4343 abb mujhe bhi pata he ki kar sakte he or kese kar sakte he
@agammunet7159
@agammunet7159 3 жыл бұрын
kr skte h bhai
@RohanDasRD
@RohanDasRD 5 жыл бұрын
Challenge Accepted!
@ruchiparihar7281
@ruchiparihar7281 3 жыл бұрын
hey is video me jo quiz diya h uska answer h kya
@sadhnasingh2469
@sadhnasingh2469 3 жыл бұрын
Hello
@pateljoy629
@pateljoy629 5 жыл бұрын
Challenge accepted 🙏
@godfather2442
@godfather2442 3 жыл бұрын
solve de doh
@ayushkumarmehta5336
@ayushkumarmehta5336 3 жыл бұрын
Can I use "string" as condition in if-else statement? If yes, how? Please someone elaborate
@purushottamw
@purushottamw 2 жыл бұрын
@Ayush Kumar Mehta The answer is no as we cannot compare strings
@ayushkumarmehta5336
@ayushkumarmehta5336 2 жыл бұрын
@@purushottamw ok..thank you
@jzyhere
@jzyhere 2 жыл бұрын
@@purushottamw Thanks
Switch Case Control Statements In C: C Tutorial In Hindi #11
19:08
CodeWithHarry
Рет қаралды 947 М.
Tut.19: Gel Electrophoresis  (OCR)  + OpenCV + TypeScript
16:33
Francesco Piscani
Рет қаралды 6
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 35 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 22 МЛН
Functions In C: C Tutorial In Hindi #19
25:54
CodeWithHarry
Рет қаралды 1 МЛН
#9: If Else Statements in C | C Programming for Beginners
12:28
Programiz
Рет қаралды 208 М.
C_27 If Statement in C | C Programming Tutorials
20:56
Jenny's Lectures CS IT
Рет қаралды 423 М.
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,3 МЛН
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 559 М.
Arrays In C: C Tutorial In Hindi #23
25:45
CodeWithHarry
Рет қаралды 1,1 МЛН
How I would learn to code (If I could start over)
13:14
CodeWithHarry
Рет қаралды 157 М.
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН