If Else in 1 Video | C Programming | Lecture 2 | Complete C Course

Поделиться
HTML-код
  • Опубликовано: 3 авг 2024
  • In this video, Raghav Sir will teach you IF ELSE statement in DETAIL. This is Lecture 2 of the C Programming series. Topics covered are - If-Else, Nested If-Else, Else If and Ternary Operator. Additionally, 22 Problems are covered in this video and 6 Homework questions are given. In the next lecture, we will cover LOOPS and PATTERN PRINTING in C.
    Lecture Notes: drive.google.com/file/d/1N1ah...
    If you are joining us late, to know more about PWSkills & plans :
    Watch the Orientation Video: • C++ DSA and Java DSA -...
    Watch the Launch Video: • @CollegeWallahbyPW THI...
    00:00 Intro
    02:21 Problem 1 : Program to find out if number is Even or Odd
    10:24 How “IF” statement works
    17:07 IF-ELSE statement
    20:53 Problem 2 : Program to find out if number is divisible by 5 or not
    22:22 Homework 1 : Program to find out if year is leap year or not
    24:24 Problem 3 : Program to print absolute value of given integer
    32:22 Problem 4 : Program to tell if profit is made or loss
    41:30 Homework 2 : Program to find the profit / loss
    41:39 Problem 5 : Program to find out if area of rectangle is greater than its perimeter
    46:23 MULTIPLE CONDITIONS in If-Else statement
    49:00 Problem 6 : Program to find out if number is three digit or not
    52:48 Problem 7 : Program to find out if number is divisible by 5 and 3
    54:00 Problem 8 : Program to find out if number is divisible by 5 or 3
    57:03 Problem 9 : Program to find out greatest of three given numbers
    1:04:08 Homework 3 : Program to find out greatest of four given numbers
    1:05:13 Problem 10 : Program to find out if 3 given numbers can be sides of a triangle
    1:09:43 Homework 4 : Program to find out youngest of three given ages
    1:10:31 NESTED IF ELSE
    1:10:59 Problem 11 : Program to find out if number is divisible by 5 and 3
    1:16:34 Problem 12 : Program to find out if number is divisible by 5 or 3 but not 15
    1:20:56 IMPORTANT RULES for MULTIPLE CONDITIONS
    1:29:15 Difference between “=” and “==”
    1:39:07 Problem 13 : Program to find out greatest of three given numbers
    1:50:20 ELSE IF
    1:54:58 Problem 14 : Print Grades given to corresponding marks
    2:03:57 Problem 15 : Program to check if three points lie on a line
    2:07:33 Problem 16 : Program to find if point lies on X-Axis, Y-Axis or origin
    2:15:25 TERNARY OPERATOR
    2:22:28 Problem 17 : Predict the output - 1
    2:25:45 Problem 18 : Predict the output - 2
    2:28:32 Problem 19 : Predict the output - 3
    2:31:14 Problem 20 : Predict the output - 4
    2:33:38 BOOLEAN DATA TYPE
    2:41:20 Homework 5 : Predict the output - 5
    2:41:43 Problem 21 : Predict the output - 6
    2:44:46 Homework 6 : Predict the output - 7
    2:45:07 Problem 22 : Predict the output - 8
    2:47:27 THE REAL THING
    2:54:50 MAZA AA GAYA
    ▶️ PW Skills Website - pwskills.com
    ▶️ PW Skills Instagram - / pwcollegewallah
    ▶️ PW Skills LinkedIn Channel -
    ▶️ PW Skills Telegram Channel- t.me/SkillsPW
    #CollegeWallah #PhysicsWallah #PhysicsWallahDkills #PWSkills #Programming #C_Language_Programming #C_Programming

Комментарии • 3,8 тыс.

  • @CollegeWallahbyPW
    @CollegeWallahbyPW  2 месяца назад +15

    📗 Enroll Now in Decode Batches and become JOB READY:
    📌 Python with DSA: bit.ly/4bXv5xF
    📌 Java with DSA: bit.ly/49vEQkZ
    📌 C++ with DSA: bit.ly/49NnNKT

  • @suryabundhe9831
    @suryabundhe9831 Год назад +440

    The best C language series ever......

  • @indhoneyyt737
    @indhoneyyt737 Год назад +500

    Kon kon chahta hai ki C language ka video regular sir jaldi jaldi aaye❤️🥰

  • @Learner_88
    @Learner_88 9 месяцев назад +117

    The best teacher on whole youtube and best lecture of c .... believe me no one can teach like him just we need to invest our time

    • @rinabanerjee1000
      @rinabanerjee1000 2 месяца назад

      Harry Potter is the best programming teacher in yt😅

  • @riteshkaran1064
    @riteshkaran1064 11 месяцев назад +106

    we want raghav sir's regular batch for full stack web developement

  • @N-fc21
    @N-fc21 6 месяцев назад +40

    00:00 Intro
    02:21 Problem 1 : Program to find out if number is Even or Odd
    10:24 How “IF” statement works
    17:07 IF-ELSE statement
    20:53 Problem 2 : Program to find out if number is divisible by 5 or not
    22:22 Homework 1 : Program to find out if year is leap year or not
    24:24 Problem 3 : Program to print absolute value of given integer
    32:22 Problem 4 : Program to tell if profit is made or loss
    41:30 Homework 2 : Program to find the profit / loss
    41:39 Problem 5 : Program to find out if area of rectangle is greater than its perimeter
    46:23 MULTIPLE CONDITIONS in If-Else statement
    49:00 Problem 6 : Program to find out if number is three digit or not
    52:48 Problem 7 : Program to find out if number is divisible by 5 and 3
    54:00 Problem 8 : Program to find out if number is divisible by 5 or 3
    57:03 Problem 9 : Program to find out greatest of three given numbers
    1:04:08 Homework 3 : Program to find out greatest of four given numbers
    1:05:13 Problem 10 : Program to find out if 3 given numbers can be sides of a triangle
    1:09:43 Homework 4 : Program to find out youngest of three given ages
    1:10:31 NESTED IF ELSE
    1:10:59 Problem 11 : Program to find out if number is divisible by 5 and 3
    1:16:34 Problem 12 : Program to find out if number is divisible by 5 or 3 but not 15
    1:20:56 IMPORTANT RULES for MULTIPLE CONDITIONS
    1:29:15 Difference between “=” and “==”
    1:39:07 Problem 13 : Program to find out greatest of three given numbers
    1:50:20 ELSE IF
    1:54:58 Problem 14 : Print Grades given to corresponding marks
    2:03:57 Problem 15 : Program to check if three points lie on a line
    2:07:33 Problem 16 : Program to find if point lies on X-Axis, Y-Axis or origin
    2:15:25 TERNARY OPERATOR
    2:22:28 Problem 17 : Predict the output - 1
    2:25:45 Problem 18 : Predict the output - 2
    2:28:32 Problem 19 : Predict the output - 3
    2:31:14 Problem 20 : Predict the output - 4
    2:33:38 BOOLEAN DATA TYPE
    2:41:20 Homework 5 : Predict the output - 5
    2:41:43 Problem 21 : Predict the output - 6
    2:44:46 Homework 6 : Predict the output - 7
    2:45:07 Problem 22 : Predict the output - 8
    2:47:27 THE REAL THING
    2:54:50 MAZA AA GAYA

  • @sachinnivargi12.02
    @sachinnivargi12.02 21 день назад +2

    Sir, you are obviously a good teacher for all type of student's, Thank you sir 🤩🤩

  • @VikashPatel-bq9bv
    @VikashPatel-bq9bv 22 дня назад +2

    this is the best video for c programming , even for fresher those who join college in first year .....thank you raghav sir.........

  • @himanshudeepanshusingh9894
    @himanshudeepanshusingh9894 Год назад +30

    worth it lecture to watch for freshers and even for those who just want to clear their basics !!
    Thank u sir...❤❤❤❤❤❤

  • @rabishankarmandal6049
    @rabishankarmandal6049 7 месяцев назад +17

    Bahut bahut bahut jyada maza aagaya sir……….
    Your explaining style is awesome, you include every small2 things to describe………….
    You teaching very simple way… it’s admit my heart……….
    …….. before I watch your videos sir…. I learn somewhere…. After I watch your video, I really happy and start follow you……..
    Now o watch every single full video of your…..🙏🙏🙏🙏🙏tq

  • @dristi7221
    @dristi7221 Месяц назад +5

    Your lectures are the best. I was not getting bored a single minute while watching your lecture.Your explanation is just awesome🥰

  • @user-gi9cz1oq2g
    @user-gi9cz1oq2g 20 дней назад +2

    Mja aa gya guru ji mene dekha pura video 1 and 2 abhi 3 Start kar rha hoo so aarsiwad dijiye 🎉🎉🎉🎉

  • @ayush_pandey_17948
    @ayush_pandey_17948 Год назад +190

    Sir please continue this series, its very helpful for us 🖤💜

  • @CodingWithSubha
    @CodingWithSubha 8 месяцев назад +17

    C IS WOW...
    AND MAAJA AA GAYA ....❤🎉

  • @neepabeethighosh4140
    @neepabeethighosh4140 3 месяца назад +25

    You are the best teacher sir. I am not coming from coding background but currently i am studying in Btech in IT so your lecture on C language is the best for improving my coding skills . I really improved myself

    • @Durgesh2407
      @Durgesh2407 2 месяца назад

      @@lalumondal4 ato simping keno kois bhai

    • @someshbiswas119
      @someshbiswas119 14 дней назад

      @@Durgesh2407 Its not simping bro, I am a boy but I have to say The teacher is really best

    • @Durgesh2407
      @Durgesh2407 14 дней назад

      @@someshbiswas119 you are getting the things wrong....not your fault tho...the person whom I replied to was not talking about the teacher but some random shitty things....so sorry for that misunderstanding...I respect sir for each and every second he gave to us

    • @someshbiswas119
      @someshbiswas119 14 дней назад

      @@Durgesh2407 Holy Moly you are right man, my fault, I didn't see it was a different person, Btw I am from WBtoo

    • @Durgesh2407
      @Durgesh2407 14 дней назад

      @@someshbiswas119 it's ok bro...so are you in college or school?

  • @Coding-s
    @Coding-s 4 месяца назад +1

    Bole to awesome 😎 pura if else ka meaning samjh gya ye syntax kabhi nhi bhulunga ❣️

  • @____shekharrr____
    @____shekharrr____ 11 месяцев назад +14

    I like to watch your lecture sir.
    No daubt that your videos are lengthy but these are useful and helpful to improve our coding.❤

  • @vishupersonal9346
    @vishupersonal9346 Год назад +22

    Seriously mza aagya ❤❤❤
    Any teacher only few teacher's told like this.
    You make concept very easy
    🎉🎉🎉🎉💯💯

  • @SamarthGupta-we5ql
    @SamarthGupta-we5ql 2 месяца назад +1

    maza aa gaya log pata nhi kyu bolte hai online coding sikhna kathin and boring hota hai lagta hai unhone aaj tak sir ki video nhi dekhi for me best lecture ever.

  • @Actorpin2rao
    @Actorpin2rao 2 месяца назад +2

    You teach with your depth of your heart & mind & I understood the all topic that you teach in this lecture

  • @Studyislife
    @Studyislife Год назад +8

    I have watched the whole video along with this, I also practiced all the questions...Thank you sir...

  • @user-nv3bp1tx4o
    @user-nv3bp1tx4o 11 месяцев назад +24

    "Teachers are the guiding stars that illuminate the path of knowledge, igniting the flames of curiosity and inspiring the minds of tomorrow."
    "Thank you, Raghav sir, for yet another insightful and engaging lecture! Your clear explanations and dedication to sharing knowledge truly make a difference in my learning journey. Looking forward to more enriching sessions like this."

  • @Skullhead901
    @Skullhead901 Месяц назад +2

    At 15:03 , instead of ! if we write it as (n%2==1) { printf("odd number") ;}
    It can also give the same output

  • @shailajahatti2563
    @shailajahatti2563 Месяц назад +1

    2:47:15 you really made C language wow for us thank you sir 😊

  • @mr.nikhilfulpagare6778
    @mr.nikhilfulpagare6778 8 месяцев назад +9

    sir literally MAJA AA GYA . this series is very helpful for us please continue 💗💗

  • @GAMER-fm2sf
    @GAMER-fm2sf 10 месяцев назад +5

    सचमे, मजा आ गया ❤ best explanation 😇

  • @Theshekhar9828
    @Theshekhar9828 4 месяца назад +3

    Really me to yu hi dekha ki bca me C kesi hoti h Or smj bhi aagya❤

  • @suryanshdobhal9321
    @suryanshdobhal9321 3 месяца назад

    Best teacher in the world kitna accha pda te h aap sir mind-blowing sb kuch easily samjh aa ja ta h superb sir 🙏🏻

  • @soothing6074
    @soothing6074 Год назад +7

    Sir your method of explanation is stupendous.
    Thank you

  • @Aditya.b_1814
    @Aditya.b_1814 Год назад +38

    Hats off to the college wallah team and the tutor who is continuosly delivering the ideas . I must say, your hardwork will pay you back.
    MAZZA AAGAYA, AAPNE MAUSAM BADAL DIYA HAI.

    • @armanrahman2446
      @armanrahman2446 Год назад +2

      yupp bro i am also learning from bangladesh... i am learning it though it is not even in my syllabus..

    • @AranyaRaj
      @AranyaRaj Год назад +2

      ​@@armanrahman2446No matter , Stay hard !

  • @adarshmisra2410
    @adarshmisra2410 5 месяцев назад

    maza aa gya...concepts aur clear hote hain by solving the mcqs

  • @Gainwithyou
    @Gainwithyou 4 месяца назад +4

    The best teacher on whole youtube

  • @keertij4673
    @keertij4673 Год назад +8

    Sir this session was awesome i scored average mark only in my c language but after attending your session understood the in depth concept thank you sir

  • @shudhanshusingh1401
    @shudhanshusingh1401 Год назад +17

    Maja aa gya sir (one request sir : please upload video frequently because we are in desperate need of your video)

  • @Saimakawal788
    @Saimakawal788 4 месяца назад +2

    Best teacher of RUclips in c language ❤❤

  • @rajkantsagar7865
    @rajkantsagar7865 4 месяца назад

    Bahut badhiya hai sir
    Mza aa rha hai hum starting se aapka video dekh rhe hai and it is very helpful

  • @fanfsty.
    @fanfsty. Год назад +9

    U r absolutely grt sir no competition hats off to your way of teaching how greatly u solve all the hindrance

  • @mahekjoshi9959
    @mahekjoshi9959 6 месяцев назад +3

    Thankyou for giving me confidence to code on my own !!

  • @mohsinall191
    @mohsinall191 5 месяцев назад

    Maazaa Aa gya sir... bahut maaza aaya sir
    ..saare concept clear

  • @pracheta2610
    @pracheta2610 3 дня назад +1

    Thank you sir. Mazaa aagaya

  • @AdityaShelke-hf7ds
    @AdityaShelke-hf7ds 10 месяцев назад +12

    Great teaching sir ❤

  • @theAR_editz
    @theAR_editz 11 месяцев назад +3

    Very nice explanation sir ☺️☺️
    Thanks a lot to you ❤️

  • @PrathamSoni-lb5eq
    @PrathamSoni-lb5eq 2 месяца назад

    Bhai Jabardast Maja AA Gaya 👍👍 kya gaajab explain kiva hei Edam Crystal clear

  • @MrPerfect-tq7wb
    @MrPerfect-tq7wb Месяц назад

    Sir aaj maine aapka 2nd lecture dekha, literally maja aa gya,itne saare examples and questions karaye ki sabkuch clear ho gya,great lecture THANK YOU SIR

  • @Kunaltheking_209
    @Kunaltheking_209 Год назад +6

    awesome helpful series ❤❤

  • @vinitmaurya3177
    @vinitmaurya3177 Год назад +3

    Mja aa aaya Thank sir ❤
    C language lecture is very nice.😊
    Thanks 🙏🙏👍

  • @B_Sena
    @B_Sena 4 месяца назад +1

    This is one of the rare full detail video in the youtube.

  • @Akshat_kumar_X07
    @Akshat_kumar_X07 6 месяцев назад

    MAZA AA GAYA SIR you are the best teacher that i found on youtube

  • @Apna_B_Vlog
    @Apna_B_Vlog 10 месяцев назад +2

    Awesome class mza aa gya padh kr
    ❤❤❤

  • @rakshithml4631
    @rakshithml4631 Год назад +23

    Now I am ready to teach my teacher about if else 😁
    It was an amazing lecture sir thank u so much for ur efforts please upload regularly ❤️❤️❤️

  • @mr_s.gargev__5185
    @mr_s.gargev__5185 4 месяца назад

    बहुत अच्छे से समझ में आया,मजा आ गया बहुत-बहुत धन्यवाद आपका

  • @MrPerfect-tq7wb
    @MrPerfect-tq7wb Месяц назад

    Maja aa gya sir,itna detailed lecture se basics pura strong ho gya

  • @ayeshatabassum546
    @ayeshatabassum546 7 месяцев назад +3

    I'm from Pakistan.your teaching method is another level ❤❤❤

  • @Rajvanshi935
    @Rajvanshi935 4 месяца назад +3

    Maja aagya sir 🎉🎉all basic doubt clear 👍

  • @PujaBamhande
    @PujaBamhande 2 месяца назад +1

    Too good lecture for coding and helpful to semester exam, thanks for these video

  • @settinggamer
    @settinggamer 4 месяца назад +1

    2:55:06 FIRSE MAZA AA GYA SIR, vese 3 din lage pura karne mei par MAZA AA GYA

  • @arc_ch
    @arc_ch Год назад +6

    Very Good Lecture as usual by Raghav Bhaiya 🙌

  • @gauravgupta5556
    @gauravgupta5556 Год назад +21

    Sir plz continue this valuable series for us 🙏👌🙏

  • @assassinworld
    @assassinworld 2 месяца назад

    You are obviously a good teacher for all type of student. I enjoyed full lecture. ❤

  • @sumitkeshri5100
    @sumitkeshri5100 5 месяцев назад

    Maja aa gaya bhaiya..❤❤.
    Sara concept acche se samajh me aa gaya..

  • @Satyamtomar7777
    @Satyamtomar7777 Год назад +3

    Mind-blowing video ❤❤

  • @Vishal-ch7eb
    @Vishal-ch7eb Год назад +16

    MAZA AA GAYA SIR☺
    THANK YOU SO MUCH FOR THIS WONDERFUL AND RESOURCEFUL LECTURE💓💓
    AND EVERYTHING WAS PERFECT💯

  • @feelingmotivated446
    @feelingmotivated446 Месяц назад

    Your r the superb, excellent nd best teacher sirrrrr... Itna clear koi nhi samjha sakta hai.. Thank you so much sir jiiiii ❤🙏

  • @Actorpin2rao
    @Actorpin2rao 2 месяца назад

    I saw full lecture, you teach this lecture vert well & in easy way so , thank you

  • @iftekharahmedansri6569
    @iftekharahmedansri6569 Год назад +5

    Sir! I watched this video also completely , and practiced each and every question.
    Thank You Sir!
    You are great!🙌

  • @journey_himself
    @journey_himself 2 месяца назад

    Maja 😊 aa gaya sir ji 😊😊 bahut hi badhiya padhaya aapne. Sab samajh aaya.

  • @shivamcomedyvlogs957
    @shivamcomedyvlogs957 2 месяца назад +1

    Maja aa gya sir, teaching your best ❤❤❤

  • @Divya-ig1be
    @Divya-ig1be Год назад +5

    Amazing Lecture sir, All concept clear in a very easy way..👍💯
    Thank u so much SIR❤..

  • @bementallypowerful01
    @bementallypowerful01 5 месяцев назад +3

    Mazza aa gya

  • @NehaMathur-sx8no
    @NehaMathur-sx8no 5 месяцев назад +1

    best lecture sir ji ...😊
    Thank you so much ji and maja aa gya...♥

  • @Jsresportsff
    @Jsresportsff 6 месяцев назад

    as a beginner i really feel that this is the best lecture i have ever seen .😇

  • @computerlanguages-fw1yw
    @computerlanguages-fw1yw 11 месяцев назад +3

    Maja aa gya sir
    You are the great ❤❤❤

  • @SujayGatait
    @SujayGatait 7 месяцев назад +2

    maaza agaya....🤩🤩
    I'm a first year student & I had no idea & knoledge about coding, but this is my 1st coding course, I'm watching, and now I can say I can write program...Thak You Sir...🤗

  • @sanjibs3799
    @sanjibs3799 8 дней назад

    You are a very good teacher. Your presentation and technique is very good. 👍

  • @PratikVermathC
    @PratikVermathC 5 часов назад +1

    Maaja aagya Sir Jii ❤❤

  • @SanskarsPandey
    @SanskarsPandey 6 месяцев назад +5

    sir I was struggling so much with c until I found this playlist. you are the best sir!

  • @ShivanshSingh-os5nd
    @ShivanshSingh-os5nd 11 месяцев назад +10

    Loved the session ❤❤MCQ's were mind blowing 😊😊

  • @KaWaiiSensEi554
    @KaWaiiSensEi554 3 дня назад +1

    best teacher for coding

  • @BakhtawarHussain
    @BakhtawarHussain Месяц назад +2

    i've been pausing at literally every opportunity and question to code it myself and been suceeful. The biggest problem being forgetting to add '&' in 'scanf'🤣.

  • @trishitamaity3496
    @trishitamaity3496 Год назад +5

    Sir please continue this series. your teaching style is outstanding.

  • @sandeepxt99
    @sandeepxt99 Год назад +15

    You are a really good heart ❤️❤️❤️
    And your teaching methods is great

  • @swastidhenkula8602
    @swastidhenkula8602 3 месяца назад

    Sach me maja aa gya padhke..bahut kuch seekha sir..thank you

  • @monali3422
    @monali3422 2 месяца назад

    THANK YOU SO MUCH...RAGHAV SIR .. HAR LECTURE MEIN MAZA ATAHI HAI. Learning and enjoying.

  • @manuu1810
    @manuu1810 9 месяцев назад +9

    Sir I learn much from u more than my college faculty ❤❤❤

  • @msdprakash3208
    @msdprakash3208 Год назад +7

    You are a really good heart ❤❤❤
    And your teaching methods is great

  • @sanjibs3799
    @sanjibs3799 7 дней назад

    Excellent 👌 just awesome. I'm impressed by your teaching skill. 👏

  • @rohit3148
    @rohit3148 2 месяца назад

    maza aa gya sir, great lecture .👍👍

  • @jagannathsahoo6018
    @jagannathsahoo6018 Год назад +6

    Infinity Thanks for your support sir ❣️❣️

  • @abcdefgh3973
    @abcdefgh3973 7 месяцев назад +3

    Loved it you make it easier for me to understand the coding thanks raghav sir ❤️

  • @jaineeshjain2970
    @jaineeshjain2970 Месяц назад

    Maza aa gya sir thank you for explaining this in a very smooth and easy way

  • @user-ze1pw2jw7u
    @user-ze1pw2jw7u 3 месяца назад +1

    finally the lecture is DONE ☑☑☑☑
    And "MAZA AA GAYA SIR JI"

  • @akshit_mehtani
    @akshit_mehtani Год назад +6

    Thankyou sir nice video loved it
    Started watching it 12:30, 6:00 it is now this is very nice

  • @user-ge8or4fm7c
    @user-ge8or4fm7c 4 месяца назад +3

    thankuvery much Raghav bhaiya.....
    mereko bahut problem the c me but aab mai dhire dhire kr paa rhi hu....

  • @khanhuzaifa33
    @khanhuzaifa33 3 месяца назад +1

    Maza aa gaya sir 😊 aap bht accha padhate ho

  • @riteshrawat3875
    @riteshrawat3875 12 дней назад +1

    Literally maza aagya❤❤❤❤❤

  • @digitalanand9589
    @digitalanand9589 Год назад +5

    maja aa gya bhaiya keep uploading such amazing lectures😍😊

  • @rishabhghildiyal3460
    @rishabhghildiyal3460 3 месяца назад +3

    if cp is 100 and sp also 100 in my opinion output will be neither loss nor profit
    37:52

  • @sandeepsuthar2544
    @sandeepsuthar2544 2 месяца назад

    Best tutorial to learn C language...salute sir..

  • @ParthDabhiOfficial
    @ParthDabhiOfficial 4 месяца назад

    maja aa gaya, thank you sir!
    your work is very helpful
    power of education

  • @CodingLover77
    @CodingLover77 Год назад +3

    Bhai main bahut khush hun aaj kab se intezar tha is part ka ❤️