Switch Case Control Statements In C: C Tutorial In Hindi #11

In this c programming tutorial video, I have explained you about if else conditionals in c and examples of the same in c. I hope you are enjoying this C course in Hindi.
►This C Lecture is a part of this C Programming Course: • C Language Tutorials I...
►Source Code + Notes: codewithharry.com/videos/c-la...
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Learn Python In Hindi ...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here

Пікірлер: 1 600

  • @CodeWithHarry
    @CodeWithHarry5 жыл бұрын

    Hope sab samajh me aa raha hai! Is this course going slow or fast????? Please please reply me??? I am getting mixed feedback. Thanks a lot!

  • @AdarshKumar-lf1kf

    @AdarshKumar-lf1kf

    5 жыл бұрын

    Perfect ..

  • @AdarshKumar-lf1kf

    @AdarshKumar-lf1kf

    5 жыл бұрын

    Notes kb se aayegi

  • @RiyaSingh-eg9qr

    @RiyaSingh-eg9qr

    5 жыл бұрын

    its going normal

  • @jyotitiwari3134

    @jyotitiwari3134

    5 жыл бұрын

    Sir array aur pointer thoda aur brief description De dijiye Jisey bade program bhi try kr sake

  • @_inspireverse___

    @_inspireverse___

    4 жыл бұрын

    Very nice explanation sir? Mere saare doubts clear ho gaye. Thank you sir!

  • @NitinKumar-gq7yr
    @NitinKumar-gq7yr Жыл бұрын

    #include int main() { int day_no; printf("enter day_no "); scanf("%d",&day_no); switch (day_no) { case 1: printf("monday "); break; case 2: printf("tuesday "); break; case 3: printf("wednesday "); break; case 4: printf("thrusday "); break; case 5: printf("friday "); break; case 6: printf("saturday "); break; case 7: printf("sunday "); break; default : printf("input must be between 1-7 "); } return 0; }

  • @pagalgameryt3734

    @pagalgameryt3734

    Жыл бұрын

    Bro give me your number please

  • @s_caat_c1702

    @s_caat_c1702

    Жыл бұрын

    Great

  • @rohanSubTopic

    @rohanSubTopic

    Жыл бұрын

    bahut cute hey

  • @abentertainment7475

    @abentertainment7475

    Жыл бұрын

    😊

  • @NupurVyas-yr5fk

    @NupurVyas-yr5fk

    Жыл бұрын

    Mujhe toh kuch samjh nhi aara😢😢😢😢

  • @sk12394
    @sk12394 Жыл бұрын

    Code using Switch for Speed of vehicle #include int main() { int speed; printf("Enter your speed "); scanf("%d", &speed); switch (speed) { case 40: printf("Your speed is 40"); break; case 50: printf("Your speed is 50"); break; case 60: printf("Your speed is 60"); break; default: printf("Your speed is not 40, 50 or 60"); } return 0; }

  • @YashCubing10

    @YashCubing10

    7 ай бұрын

  • @roshangaming2772

    @roshangaming2772

    Ай бұрын

    Galat h bhai

  • @iitduniya
    @iitduniya6 ай бұрын

    Kon kon 2024 me dekh raha hai❤❤

  • @Xianshome1505

    @Xianshome1505

    3 ай бұрын

    Me also!

  • @YugankUpadhyaya-pp4lu

    @YugankUpadhyaya-pp4lu

    2 ай бұрын

    Maaah

  • @SulekhaNandan-iz9yf

    @SulekhaNandan-iz9yf

    2 ай бұрын

    Me

  • @ayeshafaisal1058

    @ayeshafaisal1058

    2 ай бұрын

    Mee

  • @DCP88

    @DCP88

    2 ай бұрын

    me

  • @sineparadox98
    @sineparadox982 жыл бұрын

    Harry bhai aapke teaching ka tareeka ek dum unique and elementary hai. Aap koi bhi concepts samjhate ho to bohot achche se aur ideal proof ke saath teach karate ho usko easily breakdown karke. Thank you so much.

  • @chaudharyshoeb8459
    @chaudharyshoeb84594 жыл бұрын

    Hello brother, You r doing a great job. As per your question ,The course is going fast but then to getting it understand by repeating the video My Switch program #include int main() { int marks; printf("enter your marks "); scanf("%d", &marks); switch (marks) { case 10: printf("your marks is 10 "); break; case 20: printf("your marks is 20 "); break; default: printf("your mark is not 10,20"); } return 0; }

  • @dnyaneshwargaikwad6788
    @dnyaneshwargaikwad67882 жыл бұрын

    { int score; printf("Enter your score "); scanf("%d",&score); switch(score) { case 12: printf("your score is 12"); break; case 16: printf("your score is 16"); break; default: printf("your score is not 12 or 16"); } return 0; }

  • @24_cst3_eshagunjekar7
    @24_cst3_eshagunjekar73 жыл бұрын

    As a beginner I was unable to understand .But your vidoes are seriously soo good, very easy to understand ❤ Also thankyou for your vlogs.

  • @shubhamjaiswal2322
    @shubhamjaiswal23225 жыл бұрын

    Bhai C padhi hai but use refresh krni thi but aap padha rhe ho toh shuru se padhne me jyada maja aa raha hai Thank you keep it up.

  • @CodeWithHarry

    @CodeWithHarry

    5 жыл бұрын

    Welcome bro!

  • @SA-ox9zi
    @SA-ox9zi4 жыл бұрын

    Best course on C I found on youtube after long research. You teach in a very intuitive way with appropriate practical examples and exercises and quizzes.

  • @rishabsharma5521
    @rishabsharma55213 жыл бұрын

    Hey Harry I'm literally watching your videos and actually it's easy to learn and I can easily implement in programs.

  • @uditnathprasad5612
    @uditnathprasad56123 ай бұрын

    #include int main() { int temp; printf("Enter the temperature in degree Celsius"); scanf("%d",&temp); switch(temp) { case 40: printf("Hot "); break; case 10: printf("Cold "); default: printf("Invalid input"); } return 0; }

  • @nikhilraj1842
    @nikhilraj18425 жыл бұрын

    // Challenge accepted /* author:Nikhil Raj purpose:To learn Switch Cases date:18/06/2019 */ #include int main(){ int kitnepanipuris; scanf("%d",&kitnepanipuris); switch (kitnepanipuris) { case 0: printf("Bhaiya 10 ke "); break; case 2: printf("Thode aur khilao "); break; case 4: printf("Thik hae bhia kitna hua "); break; default: printf("Ache Pani puri hae"); break; } return 0; }

  • @ankitsatyal8512

    @ankitsatyal8512

    5 жыл бұрын

    😂😂🙏🏻🙏🏻🙏🏻

  • @harshittripathi5557

    @harshittripathi5557

    4 жыл бұрын

    osm bruh🤣🤣🤣🤣

  • @nikhilflautist

    @nikhilflautist

    4 жыл бұрын

    wonderful bro

  • @AkashGupta-uk2ld

    @AkashGupta-uk2ld

    4 жыл бұрын

    lmao it's not valid......

  • @techymind1378

    @techymind1378

    4 жыл бұрын

    bhai tune starting me printf me kuch likha hi nhi

  • @isantsinghrajpoot4670
    @isantsinghrajpoot46705 жыл бұрын

    It's really nice explanation of switch Thanks

  • @MuhammadHaris-xp1yd
    @MuhammadHaris-xp1yd3 жыл бұрын

    Great explanation of switch statement❣️ BHT he easy way ma smjhaya blkol jesa ka vedio ma one way type amjhaata ha ta ka koi doubt na Raha we'll done ar thanks allot 🌸

  • @somnathdey8131
    @somnathdey81313 жыл бұрын

    A lot of Thanks bhaiya for this tutorial playlist of c language ❤️❤️

  • @mkstates6246
    @mkstates62463 жыл бұрын

    Sir aap bahut clearly samjhate jo thank you sir 🙏🏻

  • @haseebwaris5781
    @haseebwaris57813 жыл бұрын

    ZAbabardast Bhttt acha sa smjhaya apna ❤ Beginners ka lia asaan ar b ha ar easily smjh b sakt ha zeda complicated way ma nai smjhaya just like other KZreadrs

  • @biswajitsamant6588
    @biswajitsamant65883 жыл бұрын

    @CodeWithHarry bhai aapp ne to mera doubt hi pura clear kardiaa BHAI

  • @rajasaha4906
    @rajasaha49064 жыл бұрын

    #include void main() {int a; printf("witch subject u have passed "); printf("for math press 1 for scince press 2 for scince & math press 3 "); scanf("%d",&a); switch (a) { case 1: printf("u got $15"); break; case 2: printf("u got $15"); break; default: printf("u got $45"); } }

  • @keshawchoudhary

    @keshawchoudhary

    2 жыл бұрын

    if the user put 4 or any other key then ur program can't show any result. I suggest for any other key its show invalid key for this u put default as invalid input and add case 3. Then ur program is more better. Thank u

  • @sabhadpiyush7563

    @sabhadpiyush7563

    2 жыл бұрын

    I don't find any sense 😐

  • @pruthvirajbhonge7720

    @pruthvirajbhonge7720

    2 жыл бұрын

    Your code is. Invalid

  • @karansolav7275

    @karansolav7275

    2 жыл бұрын

    error aayenga return 0 kon likhenga !

  • @maazshaikh3708

    @maazshaikh3708

    2 жыл бұрын

    @@karansolav7275 its not at all necessary

  • @janhvinarayan1633
    @janhvinarayan16338 ай бұрын

    love your way of explaining, i wish all my college teachers were like u but never mind.

  • @markphilip3982
    @markphilip39823 жыл бұрын

    you are really awesome sir,thnku for all your effects..

  • @basitshykh756
    @basitshykh7562 жыл бұрын

    sir i am from pakistan and matric class student.sir your teaching pattern is so clearly.clearly that way because you teach everthing that could be important to us with the help of your videos you teaching your subscriber everything that they want and free of cost .this is one of the best platfarm where they founds every videos

  • @nikhilanand3447

    @nikhilanand3447

    2 жыл бұрын

    Bro your English tells us that you are Pakistani

  • @professor2250

    @professor2250

    2 жыл бұрын

    @@nikhilanand3447 bro your face tells us you are Indian

  • @anshumanraturi

    @anshumanraturi

    2 жыл бұрын

    @@nikhilanand3447 not ethical for anybody to troll anyone for his/her second language. English doesnot bring wisdom u proved it. May u get wisdom.

  • @parmardharmik4731

    @parmardharmik4731

    2 жыл бұрын

    @@nikhilanand3447 bro tuje itani hi ENGLISH aati hai to tu jake usse sikha Tere ma -baap ko teri jitani English aati hai kya??????????

  • @memematerial4205

    @memematerial4205

    2 жыл бұрын

    Welcome bro

  • @ajaymohankar5912
    @ajaymohankar59124 жыл бұрын

    #include int main() { int age,percent; printf("ENTER YOUR AGE BETWEEN 10 TO 15 "); scanf("%d",&age); switch (age) { case 10: printf("you should be in 5th class now "); break; case 11: printf("you should be in 6th class now"); break; case 12: printf("you should be in 7th class now"); break; case 13: printf("you should be in 8th class now"); break; case 14: printf("you should be in 9th class now"); break; case 15: printf("you should be in 10th class now"); break; default: printf("i have no information about this age class"); break; } return 0; }

  • @abdularhamjamal8957

    @abdularhamjamal8957

    3 жыл бұрын

    percent variable is useless....you didn't use it ..in 4th line (int age,percent;) should be (int age;)😄

  • @1plusspace568

    @1plusspace568

    2 жыл бұрын

    should be in 4th line Scanf("%d", &age,& percent);

  • @CEB-AMITKUMAR

    @CEB-AMITKUMAR

    2 жыл бұрын

    Bro If by default has executed then break no needed I think 🤔

  • @shivamchopra9885

    @shivamchopra9885

    2 жыл бұрын

    This program is not executed

  • @Sunny-qy1fj

    @Sunny-qy1fj

    2 жыл бұрын

    you need to take another switch in every case and put percent according too your mind

  • @sherpurgovtvictoriaacademy1338
    @sherpurgovtvictoriaacademy13382 жыл бұрын

    Powerful classes of C programming

  • @fanniworld
    @fanniworld8 ай бұрын

    Dear harry sir i am learning from your c language course and this is fabulous thank you

  • @sonalibachhav9229
    @sonalibachhav92293 жыл бұрын

    I think you are the master in c programming language , great explanation thanks "a lot"

  • @nikhilbhamare5497

    @nikhilbhamare5497

    3 жыл бұрын

    What is think , he is the master😉 of c programming

  • @biswajitsamant6588

    @biswajitsamant6588

    3 жыл бұрын

    @@nikhilbhamare5497 GOD OF C😎😎😎😎😎😎

  • @tuneflix7252
    @tuneflix72522 жыл бұрын

    #include int main () { int a; printf("your roll no is ") ; Scanf("%d", &a) ; Switch (a) { Case 1: printf(" Your name is prachi") ; break; Case 2: printf(" Your name is sakshi") ; break; Case 3: printf(" Your name is Tushar") ; break; default : printf("roll no is incorrect") ; break; } return 0; }

  • @virtual_space399

    @virtual_space399

    2 жыл бұрын

    Bhai app kon se code editor ka use krte h

  • @tuneflix7252

    @tuneflix7252

    2 жыл бұрын

    @@virtual_space399 Visual Studio

  • @sine-sine4530

    @sine-sine4530

    Жыл бұрын

    Pura course kar diya apne?

  • @madhuramsharma9886
    @madhuramsharma98863 жыл бұрын

    thank you bhiya for this course. you are great

  • @rangwaniraj.9636
    @rangwaniraj.96363 жыл бұрын

    Ho gaya ho gaya ho gaya 🤩jalso padi gyo baapu 💪🤜🤛

  • @nikitaraut2747
    @nikitaraut2747 Жыл бұрын

    Challenge accepted Harry I had still seen 10 videos but they are mind blowing .I think no one is there as you Harry You r d best coder I had ever seen

  • @imamuddinansari2917
    @imamuddinansari29175 жыл бұрын

    aap itna achhe se smjhate h fir bhi aap ke video pr likes kam q aate h ? aapke sabhi videos superb h 👌👌👌👌👍👍👍👍

  • @mohitgupta-ks4em

    @mohitgupta-ks4em

    3 жыл бұрын

    kyo ki sir hindi main padate hi

  • @subscribetogamingIntrouble
    @subscribetogamingIntrouble Жыл бұрын

    thanks harry bhai for sharing a great knowledge about c language

  • @harvindershaw7562
    @harvindershaw75623 жыл бұрын

    Stress buster..ty bhai

  • @achyutagrahari2008
    @achyutagrahari20082 жыл бұрын

    /* Date-5/1/2022 Author Name-Achyut Agrahari Purpose=for Learning Code The code is about switch satements*/ int main() { int a; printf("Cutoff For Admission In BCA " ); printf("Enter your category code "); printf("Enter 1 for unreserved category "); printf("Enter 2 for EWS category "); printf("Enter 3 for OBC category "); printf("Enter 4 for SC/ST category "); scanf("%d",&a); switch (a) { case 1: printf("Enter your marks "); scanf("%d",&a); if (a>=160) { printf("you are selecteted "); } else printf("Wait for next cutoff "); break; case 2: printf("Enter your mark "); scanf("%d",&a); if (a>=150) { printf("you are selecteted "); } else printf("Wait for next cutoff "); break; case 3: printf("Enter your mark "); scanf("%d",&a); if (a>=142) { printf("you are selecteted "); } else printf("Wait for next cutoff "); break; case 4: printf("Enter your mark "); scanf("%d",&a); if (a>=125) { printf("you are selecteted "); } else if (a>=100) { printf("you are selecteted through ST catgory "); } else printf("Wait for next cutoff "); break; default: printf("Error "); } }

  • @clashchamp410

    @clashchamp410

    2 жыл бұрын

    Scan f kaha he

  • @OmjiDwivedi-ft6qe

    @OmjiDwivedi-ft6qe

    6 ай бұрын

    Mja aaa gya 💥💥

  • @Coder-jkm-45

    @Coder-jkm-45

    Ай бұрын

  • @arjunkendre4656
    @arjunkendre46565 жыл бұрын

    #include int main() { int age; scanf("%d ", &age); printf("enter your age ",age); switch(age) { case 2:printf("your age is 45"); break; case 3:printf("your age is below 30"); break; default:printf("your age is not match"); } return 0; } My code I am beginner

  • @akashagrawal2645

    @akashagrawal2645

    3 жыл бұрын

    🙄 if person input 2 then it will show your age is 45 I think so you should improve this one 🙏

  • @nileshrajbhar9263

    @nileshrajbhar9263

    3 жыл бұрын

    Printf will come before scanf u should improve this thing also 🙏🙏😊😊

  • @nileshrajbhar9263

    @nileshrajbhar9263

    3 жыл бұрын

    I am also a beginner 👍👍🤘🤞

  • @SUNNYVLOGS812

    @SUNNYVLOGS812

    3 жыл бұрын

    Bro if a person input his /her age 2 then account to your program he's 45 year old :(

  • @SadamHussain-zj9ei
    @SadamHussain-zj9ei5 жыл бұрын

    Hi Sir, Great Explanation of switch statement. Thank you so much.

  • @CodeWithHarry

    @CodeWithHarry

    5 жыл бұрын

    Thanks Sadam!

  • @SadamHussain-zj9ei

    @SadamHussain-zj9ei

    5 жыл бұрын

    Sir, aap awar exercise banaye ge. Bahut maza hai ex main.

  • @hindishorts593

    @hindishorts593

    4 жыл бұрын

    @@CodeWithHarry Harry bhaiya jo aapne practice ke liye work diya tha c program ka jisame : math=15, science=15, math& science=45 prize Dena tha Value me math science dalne par error Bata Raha hai but nomber dalne par run karta hai ye mujhe samajh me nahi aa Raha hai Please mujhe jarur bataiyega

  • @karateandextratips4487

    @karateandextratips4487

    3 жыл бұрын

    @@hindishorts593 same here bro

  • @karateandextratips4487

    @karateandextratips4487

    3 жыл бұрын

    @@hindishorts593 pls solve this problem bhai

  • @vindeshshukla4079
    @vindeshshukla4079 Жыл бұрын

    #include int main() { int marks; printf ("enter your marks "); scanf("%d",&marks); Switch (marks) { Case 45: printf("your marks is 45"); break; Case 99: printf ("your marks is 99"); break; default: printf ("your marks is not 45 and 99"); break; } return 0; }

  • @VishwanathRathod-bh6te
    @VishwanathRathod-bh6te2 ай бұрын

    thank you sir aapne acha Samjaya ek ek karke sub samj raha hai if else toh samj aagya abhi switch bhi samj gya.❤❤❤❤💯💯💯

  • @nihaltabbalaji5340
    @nihaltabbalaji53402 жыл бұрын

    #include Int main() { Int age, weight; Printf("enter the age "); Scanf("%d",age); Printf("Enter the weight "); Scanf("%d",weight); Switch (age) Case14 Printf(" the age is 14"); Switch( Weight) Case 27 Printf("Enter the weight"); Break; Default Printf("the age and weight are match"); }

  • @mohitverma4777
    @mohitverma47774 жыл бұрын

    #include int main() { int a; printf("Please Enter 1 if you are passed in maths 2 if you are passed in science 3 if you are passed in both maths and science And 4 if you are passed in none "); scanf("%d",&a); switch (a) { case 1 : printf("You have won rs.15 "); break; case 2 : printf("You have won rs.15 "); break; case 3 : printf("You have won rs.45 "); break; default: printf("Work Hard!!!!"); break; } return 0; }

  • @rishisingh1188

    @rishisingh1188

    Жыл бұрын

    awsome bro

  • @mr.harshgamer3191

    @mr.harshgamer3191

    Жыл бұрын

    It shows error 😐

  • @mr.harshgamer3191

    @mr.harshgamer3191

    Жыл бұрын

    Becuase u doesn't use conio

  • @juturtaur298

    @juturtaur298

    Жыл бұрын

    Wellcome bruh 😇😇

  • @adityaa8410
    @adityaa8410 Жыл бұрын

    sample program for switch case (nested): #include int main() { int b,class; printf("enter a number b: "); scanf("%d",&b); printf("enter your class: "); scanf("%d",&class); switch (b) { case (45): printf("the value is 45 "); switch (class) { case (12): printf("your in class 12 "); break; default: break; } break; case(35): printf("the value is 35"); default: break; } return 0; }

  • @simpiyashasvi5108
    @simpiyashasvi51082 жыл бұрын

    harry bro keep in mind u r writing a program of a case sensitive language so while u were teaching u wrote Switch(a)...Sorry to say ...You are a god to me and ofc the best fking teacher in this world

  • @mridulamal7748
    @mridulamal7748 Жыл бұрын

    #include Int main( ) { Int age; Printf("enter your age :"); Scanf("%d",&age ); Switch(age ){ Case 18 : Printf(" preadult "); break Case 10: Printf("young"); break; Case 60: Printf("old"); default : Prrintf("invalid age "); } return 0; }

  • @ashishbalyan835
    @ashishbalyan8353 жыл бұрын

    Aapky video dekh kr dobra dekhne ky jrurat he nhi pdti 😂 I make a lot of program for my xgf in fun way this is just like game 😂 I I'll injoy your every video 🥰and programming is so funny also 😂😂

  • @los_pollos_hermanos_

    @los_pollos_hermanos_

    3 жыл бұрын

    Beta aap galat platform par aa gaye ho. Aap whitehat junior par hi seemit rahe... Aur itna na hi hase toh behtar..

  • @ManishRashtraputMaths
    @ManishRashtraputMaths5 жыл бұрын

    1$t from Manish Aryan

  • @ZyramDora8
    @ZyramDora82 жыл бұрын

    Ek calculater bana ne ki kosis kar raha tha sir..apke sare videos bahat ache he aur easy he rehta he..thank you so much. #include int main() { int a,b,c; float r; printf("Enter 2 numbers: "); scanf("%d%d",&a,&b); printf(" 1) Addition"); printf(" 2) Substraction"); printf(" 3) Multiplication"); printf(" 4) Divison"); printf(" 5) Modulos"); printf(" 6) Exit"); printf(" Enter your Choice:- "); scanf("%d",&c); switch(c) { case 1: { r=a+b; break; } case 2: { r=a-b; break; } case 3: { r=a*b; break; } case 4: { r=a/b; break; } case 5: { r=a%b; break; } case 6: { break; } default: { printf("Wrong Entry"); break; } } printf("Your Answer is %f ",r); }

  • @nahiarabeer9565
    @nahiarabeer95653 жыл бұрын

    Thank u so much harry vai Btw Love u from bangladesh 😚😚

  • @preetmonga436
    @preetmonga436 Жыл бұрын

    Code for checking whether a triangle is right angled or not #include int main() { int A,H,P,B; printf("Enter the length of sides of triangle Enter larger length first "); scanf("%d%d%d",&H,&B,&P); A = H*H - (B*B +P*P); switch(A) { case 0 : printf("Triangle is Right angled triangle"); break; default : printf("Triangle is not Right angled"); } return 0; }

  • @yashshukla9590

    @yashshukla9590

    Жыл бұрын

    what if i entered base insted of hypotenuse in the first place

  • @preetmonga436

    @preetmonga436

    Жыл бұрын

    @@yashshukla9590 that's why i wrote their to enter larger side first i.e. hypotenuse

  • @dorothy4407

    @dorothy4407

    10 ай бұрын

    Ur code means if area is 0 it's a right angled?? That doesn't make sense, explain pls

  • @preetmonga436

    @preetmonga436

    10 ай бұрын

    @@dorothy4407 Area is not used. A is not area but a variable to check validity of Pythagoras theorem. We can add another case for that if the sides zero that means it is a point.

  • @titlegamerz8156

    @titlegamerz8156

    9 ай бұрын

    This code won't show any output 👇🏻 This is the right code #include int main() { int A,H,P,B; printf ("enter the length of the sides of a triangle First enter the largest ones length "); scanf("%d,%d,%d",&H,&P,&B); printf("A=%d ",H*H-(P*P+B*B),&A); switch(A) { case 0: printf("this is a rightangled triangle "); break; default: printf("this is not a right angled triangle"); } return 0; }

  • @vinay5653
    @vinay56533 жыл бұрын

    Sir thanks For this tutorial videos you are great

  • @prabhaentertainment9706
    @prabhaentertainment97063 жыл бұрын

    your explanation is excellent

  • @FunTimeWithDew
    @FunTimeWithDew5 жыл бұрын

    Created by Dewanshu.. #include int main() { int number; printf("enter the number from 0 to 5: "); scanf("%d",&number); //enter the number for knew about your personality int year; printf(" enter the year from 2000-17: "); scanf("%d",&year); //it's just an example switch(number) { case 0: printf("Personality:Kind "); switch(year) { case 2000: printf("the year is : 2000"); break; case 2001: printf("the year is : 2001"); break; case 2002: printf("the year is : 2002"); break; default: printf("The year is not appropriate"); } break; case 1: printf("Personality:generous "); switch(year) { case 2003: printf("the year is : 2003"); break; case 2004: printf("the year is : 2004"); break; case 2005: printf("the year is : 2005"); break; default: printf("The year is not appropriate"); } break; case 2: printf("Personality:Responsible "); switch(year) { case 2006: printf("the year is : 2006"); break; case 2007: printf("the year is : 2007"); break; case 2008: printf("the year is : 2008"); break; default: printf("The year is not appropriate"); } break; case 3: printf("Personality:Helpful "); switch(year) { case 2009: printf("the year is : 2009"); break; case 2010: printf("the year is : 2010"); break; case 2011: printf("the year is : 2011"); break; default: printf("The year is not appropriate"); } break; case 4: printf("Personality:Clever "); switch(year) { case 2012: printf("the year is : 2012"); break; case 2013: printf("the year is : 2013"); break; case 2014: printf("the year is : 2014"); break; default: printf("The year is not appropriate"); } break; case 5: printf("Personality:Smart "); switch(year) { case 2015: printf("the year is : 2015"); break; case 2016: printf("the year is : 2016"); break; case 2017: printf("the year is : 2017"); break; default: printf("The year is not appropriate"); } break; default: printf("The number is not appropriate"); } return 0; } Bro please check it and tell me how can I use character Data type in this format.

  • @manishKumar-tl2ee
    @manishKumar-tl2ee4 жыл бұрын

    if i didn' t used the break command, then default will be executed , that's seems logical. but why other cases are also executed in output.They should not be executed because , how does one entry can satisfy the conditions of all case.??????

  • @abdussamipatel7901

    @abdussamipatel7901

    3 жыл бұрын

    When we don't use break... It doesn't mean it's satisfying remaining cases.... It just executes all statements... As a result, anything inside printf() function display on terminal

  • @Ap8807
    @Ap88072 жыл бұрын

    Thankyou Harry bhaiya

  • @theprogramedworld1168
    @theprogramedworld11683 жыл бұрын

    hi bro i am lucky my age is 12 year i am big fan of you and i have watch your every video now i am learning C i have learned it 50% from your videos and i am taking out notes thanks bro

  • @Simran-dm3ge
    @Simran-dm3ge Жыл бұрын

    { int weight; printf("Enter your weight "); scanf("%d", &weight); switch (weight) { case 10: printf("You can go for moonwalker ride "); break; default: printf("Your weight is not appropriate, you cant go for the ride "); break; } }

  • @iamstudying389
    @iamstudying3897 ай бұрын

    pov: you are learning your first language in your semester break

  • @Walk_and_Talk_707
    @Walk_and_Talk_70710 ай бұрын

    Love you sir .this course is very awesome

  • @abhi4Abhishek
    @abhi4Abhishek3 жыл бұрын

    No doubt at all 🔥🔥❤️

  • @mayankpanjwani6643
    @mayankpanjwani66434 жыл бұрын

    I NEED A CHEAT SHEET OF C PROGRAMMING LANGUAGES.

  • @groww9276
    @groww92765 жыл бұрын

    Please promise that after C language you make videos on java or android.please.

  • @V_Log7
    @V_Log73 жыл бұрын

    Guru g badiya samjah ya hai apne maja aa gya

  • @aryanmangla2332
    @aryanmangla23323 жыл бұрын

    loved the video man

  • @mrnavdip9560
    @mrnavdip95602 жыл бұрын

    Thanks you sir, my dream is one day I'll in cyber security and I never forget in my life🔥❤️ Your every lecture are very useful for all student and you are god for me.

  • @geteverything8252

    @geteverything8252

    2 жыл бұрын

    Mere liye bhi yaar harry bhai kya padate hai yaar vo mere liye bhagwan hai jindagi mai ek bar jarur milunga 🙏

  • @Hyd35

    @Hyd35

    2 жыл бұрын

    Bro to get into cyber security what else i have to know i mean which language i has to study. And what else?

  • @mrnavdip9560

    @mrnavdip9560

    2 жыл бұрын

    @@Hyd35 c++ , py. ect..

  • @Hyd35

    @Hyd35

    2 жыл бұрын

    @@mrnavdip9560 thankyou😇

  • @jayanspaliwal5907
    @jayanspaliwal59072 жыл бұрын

    I think it's better to use break if we don't want the code to behave erratic

  • @usjvlogs9155
    @usjvlogs91558 ай бұрын

    Switch ke andhar switch, learnt new thing today, thanks Harry bhaii❤😊

  • @anshumanacharya9812
    @anshumanacharya981210 ай бұрын

    #include int main() { int marks; printf("Enter your marks in programming and data structures"); scanf("%d",&marks); switch(marks) {case(90): printf("GOOD "); break; default: printf("Focus on your weaknesses "); break; } printf("End "); return 0 }

  • @pranitdaphale6409
    @pranitdaphale64092 жыл бұрын

    Char a Printf("enter your name"); Scanf ("%d",&a); Switch (a) { Case(sky): Printf("your name is sky"); Break; Default Printf("your age is not defined"); } Return 0; }

  • @Hatimtai007

    @Hatimtai007

    2 жыл бұрын

    %c

  • @vishalsharma3095
    @vishalsharma30954 жыл бұрын

    if,else and switch #include int main() { int age, le; printf("Enter your age to test drive "); scanf("%d",&age); if (age

  • @jyotiranjankunda1428

    @jyotiranjankunda1428

    3 жыл бұрын

    Bhai ye escape sequence ok ka mtlb kya hai jo tumne printf statement ke andar likha h shuruvat me

  • @shreyashkakde9315

    @shreyashkakde9315

    3 жыл бұрын

    @@jyotiranjankunda1428 bro vo ok nhi hai he hai bas inhone k bad whitespase nhi deye hai ko kam ka he kare ga

  • @idontknow8522

    @idontknow8522

    3 жыл бұрын

    @@jyotiranjankunda1428 ke bad jobhi Likha hota Hain wo new line me Chala jata hain

  • @idontknow8522

    @idontknow8522

    3 жыл бұрын

    @@_RajatDhullCSB 🤔

  • @vishalsharma3095

    @vishalsharma3095

    3 жыл бұрын

    @@jyotiranjankunda1428/n ka mtlb new line hai ok

  • @deependradixit7049
    @deependradixit70494 жыл бұрын

    Excellent work bro

  • @swagatamhazra1910
    @swagatamhazra19102 жыл бұрын

    Harry sir You teach better than my college college professor ♥️😀

  • @bharatsinghpatel5086

    @bharatsinghpatel5086

    2 жыл бұрын

    Abhi rukho iska screenshote aapke sir ko deta hu.. 😂

  • @uvutkarshverma

    @uvutkarshverma

    2 жыл бұрын

    @@bharatsinghpatel5086 ha bhai de de sir ki burayi but harry rocks

  • @akib_zaved7169

    @akib_zaved7169

    2 жыл бұрын

    @@uvutkarshverma 😂😂😂

  • @PriyaGupta-sg4sm
    @PriyaGupta-sg4sm Жыл бұрын

    /*a program to demonstrate the usage of switch and case statements 1) the age should either be 16,25 or 36 2) the work experience must be 15, 20 or 25 years respectively */ #include int main() { int age, exp ; printf("enter your age : "); scanf("%d",&age); printf("enter your experience (in years) "); scanf("%d",&exp); switch (age){ case 16: printf("your age is 16 "); switch (exp){ case 15: printf("YOU ARE ELIGIBLE !"); break; default: printf("YOU ARE NOT ELIGIBLE, SORRY !"); } break; case 25: printf("your age is 25 "); switch (exp){ case 20: printf("YOU ARE ELIGIBLE !"); break; default: printf("YOU ARE NOT ELIGIBLE, SORRY !"); } break; case 36: printf("your age is 36 "); switch (exp){ case 25: printf("YOU ARE ELIGIBLE !"); break; default: printf("YOU ARE NOT ELIGIBLE, SORRY !"); } break; default: printf("not aligible since your age is not 16, 25 or 36"); } return 0; }

  • @arunrana-ch2zd

    @arunrana-ch2zd

    Жыл бұрын

    the only that doesn't fit is that if we enter age 16 code will only sat that you are eligible particularly for exp 15 but not for above (if we are over looking the fact that how can a 16 year old have exp of 15 years lol ) also i have a question cant we use ,= these in switch statements ? btw kind efforts 🙂

  • @poojaveerwani328
    @poojaveerwani3283 жыл бұрын

    I really like your way of teaching. Superb👍

  • @shikharbhasin4525
    @shikharbhasin45253 жыл бұрын

    Thanks Harry Bhai..

  • @divyashreechandrana9560
    @divyashreechandrana95602 жыл бұрын

    // Write a C program to check whether a number is positive, negative or zero using switch case. #include int main () { int a; printf(" enter a number: "); scanf("%d", &a); switch (a > 0) { case 1: printf("positive"); break; case 0: switch (a

  • @utkarshpankaj5

    @utkarshpankaj5

    2 жыл бұрын

    Bhaiya/didi aapne pehle lagaya hai vo last me hota hai

  • @ashish4k07

    @ashish4k07

    2 жыл бұрын

    @@utkarshpankaj5 its not needed actually instead it could be like this printf("Enter a number:"); scanf("%d",&a); this will look good.

  • @deepsahil__

    @deepsahil__

    Жыл бұрын

    @@utkarshpankaj5 that's upto you, you can use it either in the start or middle or last 🙋‍♂️

  • @Anasboss744

    @Anasboss744

    Жыл бұрын

    Cas

  • @attaurrahaman6843
    @attaurrahaman68433 жыл бұрын

    I've written a menu driven program with exit , with the help of while loop . Thank you sir , you are great. include int main() { int choice, a,b,s; while(1) { printf(" 1. Addition"); printf(" 2. Odd-even"); printf(" 3. Printing n numbers"); printf(" 4. Multiplication"); printf(" 5. exit"); printf(" Enter your choice : "); scanf("%d", &choice); switch(choice) { case 1: printf(" Enter two numbers : "); scanf("%d%d",&a,&b); s=a+b; printf("Sum is %d", s); break; case 2: printf(" Enter a number : "); scanf("%d", &a); if(a%2==0) printf(" even number"); else printf(" odd number"); break; case 3: printf(" Enter a number : "); scanf("%d", &a); for(b=1;b

  • @sameerkumar_3441

    @sameerkumar_3441

    2 жыл бұрын

    awsome

  • @HunterPlaysOP
    @HunterPlaysOP2 ай бұрын

    love you sir sab smjh agya 😚😚😍😇😇🥰🥰🥰🥰🥰

  • @JapanLiveTravel
    @JapanLiveTravel2 жыл бұрын

    Exactly harry sir your so genius

  • @MdShahid-rb8nc
    @MdShahid-rb8nc2 жыл бұрын

    CHALLENGE ACCEPTED #include int main() { int kele,tarbooz; printf("kitne kele chiye "); scanf("%d",&kele); printf("tarbooz bhi khayega kya "); scanf("%d",&tarbooz); switch (kele) { case 6: printf("badhiya h khao "); break; case 12: printf("kam khaya kar be "); break; case 50: printf("janwar hi marega tu "); switch (tarbooz) { case 10: printf("gandu he kya "); break; default: printf("jeele apni zindagi "); break; } break; default: break; } return 0; }

  • @GameGuftuGu

    @GameGuftuGu

    2 жыл бұрын

    Good bro.and very funny code 👏🤣

  • @ananyashrivastav8298

    @ananyashrivastav8298

    Жыл бұрын

    hahahhahahahaahhhahhahhahahaha

  • @shubhamjaiswar7542

    @shubhamjaiswar7542

    Жыл бұрын

    Hahahaha 😂 Nice code ..

  • @jaykoranga4859

    @jaykoranga4859

    Жыл бұрын

    Funny bro

  • @it-27utkarshawarbhe28
    @it-27utkarshawarbhe282 жыл бұрын

    #include int main() { int num; printf("Enter number you want"); scanf("%d",&num); switch(num==num/2) { case 0: printf("It is Even Number"); break; default: printf("It is Odd number"); break; } return 0; }

  • @manavjain9648
    @manavjain96483 жыл бұрын

    great explanation harry bhai

  • @Vishal-nw4lm
    @Vishal-nw4lm3 жыл бұрын

    Codewith Harry on 🔥🔥🔥🔥🔥🔥

  • @kanavbatra443
    @kanavbatra4432 жыл бұрын

    // a code for school purposes #include int main(int argc, char const *argv[]) { int a, b; printf("Enter your class[6,7,8] -->"); scanf("%d", &a); printf("Enter your marks [MM-80] -->"); scanf("%d", &b); switch (a) { case 6: printf("ok...... "); if (b > 32 && b { printf("Passed!! "); } else if (b { printf("Failed!! "); } else { printf("Wrong input!!! "); } break; case 7: printf("ok...... "); if (b > 40 && b { printf("Passed!! "); } else if (b { printf("Failed!! "); } else { printf("Wrong input!!! "); } break; case 8: printf("ok...... "); if (b > 42 && b { printf("Passed!! "); } else if (b { printf("Failed!! "); } else { printf("Wrong input!!! "); } break; default: printf("You have entered wrong class!! "); break; } return 0; } // i know its long enough but can be helpful

  • @Lafhdajhalare

    @Lafhdajhalare

    Жыл бұрын

    Bro I got error in my code can uh please help me😕

  • @kanavbatra443

    @kanavbatra443

    Жыл бұрын

    @@Lafhdajhalare bro what is the error?

  • @kanavbatra443

    @kanavbatra443

    Жыл бұрын

    have you tried my code?

  • @food8814
    @food88143 жыл бұрын

    int main() { int class; printf("enter your class") scanf("%d",&class); switch(class) { class 5: printf("the class is 5th std"); break; class 6: printf("the class is 6th std"); break; default: printf("your class is not 3th std and 5th std"); } return 0; }

  • @mahmad48

    @mahmad48

    3 жыл бұрын

    statement terminator after printf statement and in last not 3th it should be 6th

  • @gautamkumarpandey9494
    @gautamkumarpandey94943 жыл бұрын

    Sir u are our inspiration

  • @mahnoornoorelahi5043
    @mahnoornoorelahi5043 Жыл бұрын

    thank you harry bahi you are best

  • @debodhkumar2905
    @debodhkumar29054 жыл бұрын

    #include #include int main(int argc, char const *argv[]) { int x,p; printf("Enter the value of X "); scanf("%d", &x); printf("And enter your age please "); scanf("%d", &p); switch (x) { case 0: printf("Yes! 0 is the correct answer "); printf("there are two answers of this question, please find the other answer too "); switch (p) { case 23: printf("your IQ is brilliant according to your current age "); break; default: printf("Your IQ does not match according to your age "); break; } break; case 1: printf("Yes! 1 is the correct answer "); printf("there are two answers of this question, please find the other answer too "); switch (p) { case 23: printf("your IQ is brilliant according to your current age "); break; default: printf("Your IQ does not match according to your age "); break; } break; default: printf("your answer is incorrect "); printf("sorry your IQ does not match with your age "); break; } return 0; }

  • @padhle2184

    @padhle2184

    3 жыл бұрын

    tumne c++ ka code likha hai ya c ka?

  • @debodhkumar2905

    @debodhkumar2905

    3 жыл бұрын

    @@padhle2184 C language ka

  • @adil470

    @adil470

    3 жыл бұрын

    @@padhle2184 bhai main func ku dekh ke confuse mathhojao c he c++ nahi

  • @jasopakisan1771

    @jasopakisan1771

    3 жыл бұрын

    @@padhle2184 nahi

  • @GaneshShinde-ls1iy
    @GaneshShinde-ls1iy4 жыл бұрын

    #include int main(int argc, char *argv[]) { int year; printf("Enter the year "); scanf("%d", &year); switch (year) { case 1983: printf("India win 1st world cup"); break; case 2007: printf("India win 1st T20 world cup"); break; case 2011: printf("India lifts the world cup after 28 years"); break; default: printf("Unlucky indian team"); } }

  • @90princesinghbbasem-52

    @90princesinghbbasem-52

    4 жыл бұрын

    Crrct

  • @ritesh1480

    @ritesh1480

    3 жыл бұрын

    Not correct bro , jab bhi "int main" use karte hai toh last me ek value return hona chaheye , in this case it should be , return 0; , that's why it will not be executed , rest all is correct , gr8 job

  • @utkarsh25

    @utkarsh25

    3 жыл бұрын

    @@ritesh1480 bro par agar ham dev c++ use kar rahe he too hame return value likhne ki jaroorat nahi he kyu ki vo compiler automaticly hi return value dedeta he

  • @omsoni6706

    @omsoni6706

    3 жыл бұрын

    Double Lena tha int q le liya 4 num hai

  • @tarakmehtakaooltachasma8169

    @tarakmehtakaooltachasma8169

    3 жыл бұрын

    @@omsoni6706 right

  • @royfamily9273
    @royfamily92732 жыл бұрын

    Thanks Harry Bhaiya

  • @adityatripathi2178
    @adityatripathi21782 жыл бұрын

    // code to determine your permits according to your age// # include int main() { int age; printf("Enter your age "); scanf("%d", &age); switch (age) { case 20 : printf("You can make your own decions "); // break; case 18 : printf("You can drive a vehicle "); // break; case 15: printf("You can go out with friends "); // break; case 10: printf("You can watch a movie "); // break; case 5: printf("You can interact with people "); break; default: printf("Are you even born "); break; } return 0; }

  • @BeingAllinOneLive

    @BeingAllinOneLive

    2 жыл бұрын

    meme material type code

  • @BeingAllinOneLive

    @BeingAllinOneLive

    2 жыл бұрын

    my parents use this code in my real life

  • @anshumann

    @anshumann

    Жыл бұрын

    Waah kya code hai🤣🤣

  • @saurabhband2354
    @saurabhband23543 жыл бұрын

    Thank U sir always

  • @pikazu2578
    @pikazu2578 Жыл бұрын

    This is a lot easier than if else statements

  • @rohanmasne1209
    @rohanmasne12093 жыл бұрын

    playlist 1. beliver 2.despacito 3.seniorita 4.peaches main() { int n ; printf(" enter the song number that you like "); scanf("%d",n); switch(n) { case 1 : printf(" beliver"); break; case 2 : printf(" despacito"); break; case 3 : printf(" seniorita "); break; case 4: printf(" peaches"); break; default : printf(" sorry , 4 songs available "); break; }

  • @pralaydas9785
    @pralaydas97855 жыл бұрын

    #include #include void main() { int height; clrscr(); printf("Enter your Height..(4,5,6) "); scanf("%d ",&height); switch (height){ case 4: printf("Your height is 4 feet "); break; case 5: printf("Your height is 5 feet"); break; case 6: printf("Your height is 6 feet"); break; default: printf("Sorry you enterd wrong digits.."); } getch(); }

  • @AbhishekKumar-hz9jo

    @AbhishekKumar-hz9jo

    3 жыл бұрын

    It seems like you coded in turbo C compiler☺☺☺

  • @1plusspace568

    @1plusspace568

    2 жыл бұрын

    Y u wrote that in scanf (/n) It mean u will go for next line U can write it after &height .

  • @nikhilporea4571
    @nikhilporea45712 жыл бұрын

    Love you harry bhai great video✌✌

  • @MukeshKumar-fz3sw
    @MukeshKumar-fz3sw2 жыл бұрын

    great explaination harry bhai

  • @tanmaydaga7204
    @tanmaydaga72044 жыл бұрын

    //Hope you like the code SIr int age; printf("Please enter your age"); scanf("%d", &age); switch (age) { case 5: printf("You are too small for driving"); case 10: printf("You are too small for driving"); break; case 14: printf("You are not too small for driving"); case 17: printf("You are just about to pass age for driving"); break; case 18: printf("You can drive"); default: printf("Cannot find your age"); break; }

  • @pankajkumawat9778
    @pankajkumawat97782 жыл бұрын

    Thank you sir , you are great. include int main() { int choice, a,b,s; while(1) { printf(" 1. Addition"); printf(" 2. Odd-even"); printf(" 3. Printing n numbers"); printf(" 4. Multiplication"); printf(" 5. exit"); printf(" Enter your choice : "); scanf("%d", &choice); switch(choice) { case 1: printf(" Enter two numbers : "); scanf("%d%d",&a,&b); s=a+b; printf("Sum is %d", s); break; case 2: printf(" Enter a number : "); scanf("%d", &a); if(a%2==0) printf(" even number"); else printf(" odd number"); break; case 3: printf(" Enter a number : "); scanf("%d", &a); for(b=1;b

  • @KESHRIXD

    @KESHRIXD

    2 жыл бұрын

    While(1) ku use kiya hai timne?

  • @parthborse8089

    @parthborse8089

    2 жыл бұрын

    Copied comment

  • @kamranhussen5364

    @kamranhussen5364

    2 жыл бұрын

    Mysirg se copy hey🙃

  • @ashutoshpradhan123

    @ashutoshpradhan123

    2 жыл бұрын

    Can we create a normal calculator using switch......???????

  • @KESHRIXD

    @KESHRIXD

    2 жыл бұрын

    @@ashutoshpradhan123 yes

  • @Bipinkumar-yo1uu
    @Bipinkumar-yo1uu3 жыл бұрын

    Thank you sir ☺️

  • @812lokeshkumar5
    @812lokeshkumar53 жыл бұрын

    Thank you sir💖😊