Loops in One Shot | C Programming | Lecture 3 | Complete C Course

Поділитися
Вставка
  • Опубліковано 28 лип 2024
  • In this video, Raghav Sir will teach you LOOPS in DETAIL. This is Lecture 3 of the C Programming series. Topics covered are - For Loop, While Loop, Do While Loop and LOTS of QUESTIONS. Pattern Printing will be covered in the next Lecture in detail, coming SOON.
    Notes of this lecture - drive.google.com/drive/folder...
    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...
    ▶️ PW Skills Website - pwskills.com
    ▶️ PW Skills Instagram - / pwcollegewallah
    ▶️ PW Skills LinkedIn Channel -
    ▶️ PW Skills Telegram Channel- t.me/SkillsPW
    Timestamps :
    00:00 Introduction
    01:35 What and Why
    05:53 FOR LOOP
    09:50 How For Loop works
    30:15 Problem 1 : Print all numbers from 1 to 100
    34:56 Problem 2 : Print all even numbers from 1 to 100
    37:36 Homework 1 : Print all odd numbers from 1 to 100
    37:50 Problem 3 : Print the table of 19
    40:07 Homework 2 : Print the table of ‘n’. Take ‘n’ input from user
    40:42 Problem 4 : Print the AP - 1,3,5,7,9.. upto ‘n’ terms
    47:13 Problem 5 : Print the AP - 4,7,10,13.. upto ‘n’ terms
    50:34 **Printing AP WITHOUT using MATHEMATICAL FORMULA
    58:28 Problem 6 : Print the GP - 1,2,4,8,16.. upto ‘n’ terms
    1:00:55 Homework 3 : Print the GP - 3,12,48.. upto ‘n’ terms
    1:01:16 **Problem 7 : Print the AP - 100,97,94.. upto all terms which are positive
    1:10:48 Homework 4 : Print the GP - 100,50,25.. upto ‘n’ terms
    1:12:42 BREAK statement
    1:13:07 Problem 8 : Program to find out if given number is prime or not
    1:38:16 CONTINUE statement
    1:38:28 Problem 9 : Print all odd numbers from 1 to 100 using CONTINUE
    1:43:41 Homework 5 : Print all even numbers from 1 to 100 using CONTINUE
    1:44:15 WHILE LOOP
    1:49:47 INFINITE LOOP
    1:53:11 Problem 10 : Predict the output 1
    1:56:34 Problem 11 : Predict the output 2
    1:57:33 Problem 12 : Predict the output 3
    1:58:58 Problem 13 : Predict the output 4
    1:59:34 Post / Pre - Increment / Decrement operators
    2:05:03 Problem 14 : Predict the output 5
    2:07:31 Problem 15 : Predict the output 6
    2:10:38 Problem 16 : Predict the output 7
    2:12:44 Problem 17 : Predict the output 8
    2:13:56 Problem 18 : Predict the output 9
    2:15:55 Homework 6 : Predict the output 10
    2:16:29 DO WHILE LOOP
    2:21:25 Questions using Operators
    2:21:53 Problem 19 : Program to count digits of a given number
    2:31:20 Problem 20 : Program to print sum of digits of a given number
    2:39:26 Homework 7 : Program to print sum of even digits of a given number
    2:40:22 Problem 21 : Program to print reverse of a given number
    2:53:27 Homework 8 : Program to print sum of given number and its reverse
    2:54:04 Problem 22 : Print sum of series - 1+2-3+4-5+6.. upto ‘n’ terms
    3:07:40 Problem 23 : Print the factorial of given number
    3:16:09 Homework 9 : Print the factorials of first ‘n’ numbers
    3:21:43 Problem 25 : Print the nth fibonacci number
    3:38:36 Homework 10 : Print the first ‘n’ fibonacci numbers
    3:39:39 Problem 26 : Given 2 numbers ‘a’ and ‘b’ , find ‘a’ raised to the power ‘b’.
    3:48:09 Problem 27 : Print all alphabet and their corresponding ASCII values
    3:55:31 Homework 11 : Print all armstrong numbers between 1 and 500
    #CProgramming #CollegeWallah #PhysicsWallah #Loops #Loopsinoneshot

КОМЕНТАРІ • 1,8 тис.

  • @CollegeWallahbyPW
    @CollegeWallahbyPW  2 місяці тому +9

    📗 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

  • @Aysx.
    @Aysx. 10 місяців тому +398

    The amount of happiness you get after a code finally runs🙂

  • @sahil-anurag
    @sahil-anurag 10 місяців тому +993

    who are from semester 1 student?

  • @taichimashima4389
    @taichimashima4389 7 місяців тому +88

    40:42 Problem 4 : Print the AP - 1,3,5,7,9.. upto ‘n’ terms
    50:34 **Printing AP WITHOUT using MATHEMATICAL FORMULA
    1:01:16 **Problem 7 : Print the AP - 100,97,94.. upto all terms which are positive
    1:13:07 Problem 8 : Program to find out if given number is prime or not
    1:33:10
    1:38:28 Problem 9 : Print all odd numbers from 1 to 100 using CONTINUE
    1:49:47 INFINITE LOOP
    2:03:50
    2:12:44 Problem 17 : Predict the output 8
    2:13:56 Problem 18 : Predict the output 9
    2:21:53 Problem 19 : Program to count digits of a given number
    2:31:20 Problem 20 : Program to print sum of digits of a given number
    2:39:26 Homework 7 : Program to print sum of even digits of a given number
    2:40:22 Problem 21 : Program to print reverse of a given number
    2:53:27 Homework 8 : Program to print sum of given number and its reverse
    2:54:04 Problem 22 : Print sum of series - 1+2-3+4-5+6.. upto ‘n’ terms
    3:07:40 Problem 23 : Print the factorial of given number
    3:16:09 Homework 9 : Print the factorials of first ‘n’ numbers
    3:21:43 Problem 25 : Print the nth fibonacci number
    3:38:36 Homework 10 : Print the first ‘n’ fibonacci numbers
    3:39:39 Problem 26 : Given 2 numbers ‘a’ and ‘b’ , find ‘a’ raised to the power ‘b’.
    3:48:09 Problem 27 : Print all alphabet and their corresponding ASCII values
    3:55:31 Homework 11 : Print all armstrong numbers between 1 and 500

    • @narendrasoni8071
      @narendrasoni8071 6 місяців тому +10

      Itni mehnat kyu krta ho jab already commented hi toh😊

    • @AmitKumar-ec7le
      @AmitKumar-ec7le 6 місяців тому +1

      Gajab bru

    • @NageshDaberao
      @NageshDaberao 5 місяців тому +1

      Sir Excellent 👌 teaching 😊

    • @aaqibahmed4572
      @aaqibahmed4572 4 місяці тому +1

      kisi ne homework solve kiya hai? please kese hoga print table of n . aur odd number wala .

    • @Heckvlogs
      @Heckvlogs 3 місяці тому +2

      Comment out krde Bhai apna comment😂😂

  • @not_human...
    @not_human... 11 місяців тому +32

    at 1:57:21 there was a semi colon just after the condition of while statement while(i

    • @saurabhchowrasia
      @saurabhchowrasia 11 місяців тому +1

      Yes you got that right even I was thinking the same.

    • @Mindblowingfacts1079
      @Mindblowingfacts1079 10 місяців тому

      Same here

    • @sachinnamdeo3746
      @sachinnamdeo3746 8 місяців тому

      Yes , you got it
      I am thinking also

    • @piyu2003
      @piyu2003 7 місяців тому

      53:00 can someone explain the without using maths method?
      Nhi samajh aaya

    • @alifhossain320
      @alifhossain320 5 місяців тому

      yes you are right

  • @samislost550
    @samislost550 Рік тому +219

    Sir Jaldi Jaldi Video Laiye Aap C Language me itna interest Bana diye hai ki wait nhi ho raha and Exam bhi hai Jan me sir So please Complete This series as soon as possible...❤️✨

    • @jayw698
      @jayw698 Рік тому +3

      @@RohitSingh-jg3sw learn python,,
      It's very easy language,,
      Easily samaj aa jayegi 😊,,
      &
      Then DSA bhi python me kar sakte ho,,
      Python & javascript is most popular language now

    • @samislost550
      @samislost550 Рік тому +8

      @@jayw698 but he's saying that he's in 1st year.....So what will he do in exam....Maybe C Language is 1st year syllabus

    • @jayw698
      @jayw698 Рік тому +12

      @@samislost550 exam ke liye pyqs dekho ,,,
      Jitni c language important hai utna karke nipta do,,
      C is important just for college exam,,
      You should not give much importance to college exam,, college ka syllabus prepare karne se placement nahi hoga
      One more suggestion-
      C language me tumhe coding continue nahi karni chahiye,,, iske baad c++ pe switch kar jao
      Reason - c++ is object oriented programming & c++ has STL library which will make data structures easy
      C & c++ are 80% same hai,, so switching from c to c++ is easy,,,
      Yeah one more thing c language me dikkat ho rahi hai to python kar sakte ho ,,

    • @samislost550
      @samislost550 Рік тому +6

      @@jayw698 Thank You So Much For Suggestions ❤️.....Gonna do it right now
      Starting to learn C++ but continuing C also.......Waise bhi sir 10 din me upload karte hai c ka to cover ho jayega.....

    • @jayw698
      @jayw698 Рік тому

      @@samislost550 👍

  • @himanshudeepanshusingh9894
    @himanshudeepanshusingh9894 Рік тому +12

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

  • @AMBRATLALROOPCHANDANI
    @AMBRATLALROOPCHANDANI 20 днів тому +4

    solution of hw at 2:53:00 is
    int n;
    printf("enter the number ");
    scanf("%d",&n);
    int a=n;
    int r=0;
    int x;
    while(n!=0){
    x=n%10;
    r=r*10;
    r=r+x;

    n=n/10;

    }

    printf("the reverse of number is %d
    ",r);
    printf("the sum of both is %d",r+a);

  • @indhoneyyt737
    @indhoneyyt737 Рік тому +49

    Sir jaldi jaldi c language pura complete kara dijiye mid sem exam coming soon🥰❤️

  • @mohammadfaisaliqbal9967
    @mohammadfaisaliqbal9967 Рік тому +106

    If you have a good mentor who can teach you in the most appropriate way then everything looks to much easy..❤

    • @shubhamkumar3139
      @shubhamkumar3139 Рік тому +2

      bhai 2:21:25 m sir ne ki bola manvi mam ne ek lecture karwaya hai operators ke upar.........bhai vo video ka link de sakte ho bhai merko mil nahi raha hai video vo wala

    • @mohammadfaisaliqbal9967
      @mohammadfaisaliqbal9967 Рік тому +1

      @@shubhamkumar3139Bhai i think sir janvi mam ki Java playlist ki baat kar rahe Hain..wait Karo main link send karta hoon😇

  • @user-uk5kk4ez7n
    @user-uk5kk4ez7n 10 місяців тому +60

    I am student of IITJ and i have seen your video ,you provide very good content to the students to buid their career
    thanks for providing good code.
    happy coding!!

    • @khawaishsoni7873
      @khawaishsoni7873 9 місяців тому +3

      nice to meet you i am from IIT BHU

    • @MERAZMESAAGE
      @MERAZMESAAGE 8 місяців тому +9

      I am from home
      After taking 2 years of gap

    • @harshitagarwal11oct
      @harshitagarwal11oct 7 місяців тому +2

      nice to meet you I am from IIT K

    • @8dsong196
      @8dsong196 6 місяців тому +1

      I am from vit Vellore

    • @ManjeetSingh-xz5tc
      @ManjeetSingh-xz5tc 6 місяців тому +1

      From VNIT Nagpur, are you people allowed a reference book in exam as here our clg is taking this subject very seriously they make such a paper that they even allow us to carry a book in the exam hall, I am just wondering what's happening in IIT

  • @ShivanshSingh-os5nd
    @ShivanshSingh-os5nd 11 місяців тому +11

    Watched the whole lecture 🎉🎉🎉🎉 Long but up to point ❤❤

  • @kiyaekobenzai9821
    @kiyaekobenzai9821 Рік тому +20

    such a masterpiece this lecture was! sir you made each and every concept seem so easy.

  • @arya60
    @arya60 Рік тому +52

    Bhot bhot dhanyawad sir jii ❤️🥰👍
    We can never forget the role of teachers like youuu in building our career....

  • @user-gg6fv3ii6b
    @user-gg6fv3ii6b 11 місяців тому +15

    You have proved that pw's lectures are best 😊.

  • @Rajveer-yy7ui
    @Rajveer-yy7ui 11 місяців тому +6

    Completely dependent on you for C programming. THANK YOU SIR.

  • @samislost550
    @samislost550 Рік тому +98

    We want Lecture 4 Sir...Maza Aa Gaya Sir is lecture me🙌❤️

  • @prahladkhapsitamarhi6705
    @prahladkhapsitamarhi6705 Рік тому +6

    Thankyou ❤️ so much sir for this lecture bcz before this lecture i have many common doubt in loop but I watch this lecture all my doubt clear 😊😊

  • @learnskills1061
    @learnskills1061 Рік тому +13

    Alhumdulilah complete 😍😍

  • @PramodSharma-ut9ud
    @PramodSharma-ut9ud 9 місяців тому +4

    Thank you so much sir for this amazing lecture.🙂 This lecture is very helpful for students.

  • @sahilrepuriya3205
    @sahilrepuriya3205 Рік тому +13

    what a amazing lecture sir falling in love with coding now😍

  • @trishitamaity3496
    @trishitamaity3496 Рік тому +8

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

  • @amaangaming7795
    @amaangaming7795 Рік тому +2

    Sir i have enjoyed this lacture and this is the best c language tutorial in UA-cam thanks for making this amazing c language lacture for us and at last i would definitely say maza aagya

  • @lakshkumar3118
    @lakshkumar3118 Місяць тому +5

    Sir mst explanation very very thanks 🙏🙏🙏 kaise khu etna acha content ko dekh ke

  • @vikasshukla2170
    @vikasshukla2170 Рік тому +11

    Really it is very nice to learn coding with you sir❤❤

  • @AbhaySingh-om3vw
    @AbhaySingh-om3vw Рік тому +4

    This is a very informative lecture.
    Thank you sir!

  • @MUSIC_MAYUR
    @MUSIC_MAYUR 7 місяців тому +8

    The amount of happiness you get after a code finally runs🙂okay

  • @mountaingreek747
    @mountaingreek747 2 місяці тому +3

    1:11:53 for those having error in this problem👇🏻
    Make sure you have use printf(a=a*(1.0/2));
    The issue is due to integer division. In C, when you divide two integers, the result is also an integer, and any fractional part is truncated. So (1 / 2) results in 0 rather than 0.5. Consequently, a remains unchanged since it's multiplied by 0, resulting in an infinite loop of printing 100.
    (Taught in Lecture 1 i guess🤔)

  • @khemchand494
    @khemchand494 Рік тому +2

    Majaa aa gya sir, pura lecture smjh aa gya. Thank you very much!!

  • @malvado8267
    @malvado8267 Рік тому +10

    2:53:30 store value of n in any other variable ,for example a.
    int a=n;

    • @rohitms5057
      @rohitms5057 Рік тому +2

      🙏

    • @gujaratimotivation1338
      @gujaratimotivation1338 Рік тому +1

      Thanks

    • @arpitb75
      @arpitb75 11 місяців тому

      Thanks bhai 🙂

    • @aryangupta6660
      @aryangupta6660 Місяць тому

      Can you give us solution?

    • @AMBRATLALROOPCHANDANI
      @AMBRATLALROOPCHANDANI 20 днів тому

      @@aryangupta6660 int n;
      printf("enter the number ");
      scanf("%d",&n);
      int a=n;
      int r=0;
      int x;
      while(n!=0){
      x=n%10;
      r=r*10;
      r=r+x;
      n=n/10;
      }
      printf("the reverse of number is %d
      ",r);
      printf("the sum of both is %d",r+a);

  • @aditimagare_music
    @aditimagare_music Рік тому +2

    I Have No Words Sir For Describe Youu!!❤️💯You Are The Bestt!✌️💥

  • @ridazaidi7995
    @ridazaidi7995 3 місяці тому +2

    I watched many videos on UA-cam, but no one explained every topic so well, sir, you explained it very well, thank you very much. ❤❤

  • @NeelamSharma-ub2sf
    @NeelamSharma-ub2sf Рік тому +11

    Sir PW is the best
    Waiting for lecture -4👍👍

  • @BijoyPantu
    @BijoyPantu Рік тому +4

    Maza aa gaya sir... And you don't need to improve yourself sir... You are really a very good teacher... Loop pura acche se samjha diya apne

  • @kavishlad3048
    @kavishlad3048 5 місяців тому +37

    2024 batch attendance here....❤

  • @Studyislife
    @Studyislife 11 місяців тому +2

    I have watched the whole video...Thank you so much sir....🙏

  • @obstinateboy7507
    @obstinateboy7507 Рік тому +3

    Thankyou sir for giving this amazing lecture 😍😍

  • @harshwardhansolanki7869
    @harshwardhansolanki7869 Рік тому +6

    Thank you sir for your efforts 💗

  • @soil1027
    @soil1027 9 місяців тому

    sir Your teaching skills is really incredable ,,, mujhe c program se dar lagta tha logic samaj main nahi ata tha then upka ye video mera sara problem solve kar diye loop ka thank you sir

  • @Studyislife
    @Studyislife 11 місяців тому +11

    Although I am learning Java from Manvi Ma'am...But this series is really very helpful for revision of concepts and practice of questions...Thank you so much sir for this series...

  • @krishnakumarraj2245
    @krishnakumarraj2245 Рік тому +3

    Amazing sir, thanks 👍

  • @loservlogs69
    @loservlogs69 Рік тому +5

    Amazing lecture guruji🙏🙏

  • @JayMahakal-px7gh
    @JayMahakal-px7gh 11 місяців тому

    Sir is teaching very best, proper problem solving sum so you can practice a lot.

  • @Programming_Pro_
    @Programming_Pro_ 3 місяці тому +11

    Semester 2 ✊

  • @anant_19
    @anant_19 Рік тому +3

    This is amazing tutorial video 👏👏👏

  • @shiwamupadhyay791
    @shiwamupadhyay791 Рік тому +19

    Best teacher for coding I have ever seen ♥️

  • @Voice_beauty49.
    @Voice_beauty49. 7 місяців тому +2

    Thanks sirrr bhut sare doubts clear hua aapke pdane se👌👌

  • @sachinsch4865
    @sachinsch4865 3 місяці тому +2

    sir i couldnt able to solve the homework at 2:53:30 . pls help me. ive already trying since 3 hours

  • @Ganesh.programmer
    @Ganesh.programmer Рік тому +3

    You are so intelligent and good teacher sir 😊
    Thanku so much 🙏

  • @nutankumari6343
    @nutankumari6343 Рік тому +9

    Maza aa Gaya Sir ❤ Thank you for the amazing lecture

  • @user-ch2zh9gx3i
    @user-ch2zh9gx3i 10 місяців тому +17

    Sir you are all-rounder !😊
    You can teach anything whether it's the maths or any other programming language!!
    Really helpful!!

    • @user-ch2zh9gx3i
      @user-ch2zh9gx3i 9 місяців тому +1

      @gurukripakevalam195 Yeah! obviously!!👍

  • @arindamdeka8095
    @arindamdeka8095 6 місяців тому +2

    Thank you so much Sir for this amazing Lecture 💓

  • @CHANDRAPRAKASH-fr6cj
    @CHANDRAPRAKASH-fr6cj Рік тому +7

    You understand the feelings of the student. Thank you so much sir 💖💖💯💯

  • @sumontagarai9228
    @sumontagarai9228 Рік тому +7

    1:56:48 sir in this question there is semi colon in the end of line of while so the while loop will not run .
    Then there will be no output

    • @nishantsingh3216
      @nishantsingh3216 Рік тому

      While loop is run infinite times

    • @sumontagarai9228
      @sumontagarai9228 Рік тому

      @nishantsingh3216 as there is a semi colon at the end of the while loop for that it will not run . U can check it in ur compiler.❤

    • @nishantsingh3216
      @nishantsingh3216 Рік тому

      @@sumontagarai9228 it will run and it will run infinite times but nothing print.

    • @sumontagarai9228
      @sumontagarai9228 Рік тому +1

      Yaa bro i have now seen it thanks for your cooperation.❤️

    • @nishantsingh3216
      @nishantsingh3216 Рік тому +1

      @@sumontagarai9228 I write that code in upper comment if u write printf("%d ", i) in between while(I

  • @AdityaKumar-wz9ce
    @AdityaKumar-wz9ce 9 місяців тому +1

    Thankyou sir for this amazing lecture.
    MAZA AA GAYA

  • @ProbablyRon
    @ProbablyRon 4 місяці тому +4

    1:57:06 No output as while is already terminated in the first line.

  • @Rahul_Raj__
    @Rahul_Raj__ Рік тому +4

    1:56:52 Yaha par while loop infinite mode me chala jayega just because of that semicolon (;) .... Infinite mode me islie jayega kyuki i ki value hamesha 1 hi rhegi aur condition ko baar baar satisfy karega i.e. 1 is always less than 10.

  • @gauravzoman7
    @gauravzoman7 7 місяців тому

    sir...Good work
    keep Doing
    in our society need teacher like you....

  • @MahendrasinghBhadoriya-zp6ly
    @MahendrasinghBhadoriya-zp6ly 29 днів тому +2

    sir mai aapke video starting se dekh raha hu or muje pahle c language nahi aati thi but aapke video starting se dekhney ke baad aab muje c language learn karney mai or usse question solve karney mai bahut acha lag raha hai thank you so much sir 😁😄😇♥♥

  • @Roxyy77
    @Roxyy77 Рік тому +3

    Lightning lecture sir❤️🔥⚡

  • @sabyasachisingha5996
    @sabyasachisingha5996 9 місяців тому +4

    But sir in wap to reverse a given number 2:49:00
    *If i want to reverse 120 it gives 21..and not 021*
    Other non zero digit are going good

  • @creativeminds5106
    @creativeminds5106 11 місяців тому

    Complete dekhliya Maza aa gya Sir. Thank you Sir

  • @harshitaverma4530
    @harshitaverma4530 22 дні тому +1

    2:53:10 sir for this que i have made a different code ->
    while(n!=0){
    lastDigit=n%10;
    printf("%d",lastDigit);
    n=n/10;
    } this is working properly!!

  • @winsomeemerald9093
    @winsomeemerald9093 Рік тому +7

    sir whole lecture is great but please make a separate lecture for switch, go to etc... miscellaneous which is important for exam point of view..

  • @AYUSHKUMAR-dj1jy
    @AYUSHKUMAR-dj1jy Рік тому +24

    As a first year i feel that this is best and detail video on loop in the youtube and question are also good
    maza aaya padh ke 😃

  • @akshatgoel180
    @akshatgoel180 Місяць тому +2

    1:57:25 the while loop does not work because of ; int the code so the statement will execute only one time

    • @OmRaval-pi4cw
      @OmRaval-pi4cw Місяць тому +1

      Execute hi nhi hoga there will be no output

  • @Jatinlanjewar_
    @Jatinlanjewar_ 9 місяців тому

    thank you so much sir for excellent explanation...thnx

  • @priyanshukumar6679
    @priyanshukumar6679 Рік тому +4

    Sir your language is very simple we want more videos asap 😄😄😄😄

  • @Shabdon_ke_hawale
    @Shabdon_ke_hawale Рік тому +5

    I'm just dealing with this subject becoz of your content and the way of teaching is commendable sir .
    "Aap same us feel ke satb samjhate h jis tarah hum first time kisi language ko padhte wakt feel karte hain, ek alag he world lagta h pehel baar ye sab dekh or padh kar

  • @user-tg8gx5nj4t
    @user-tg8gx5nj4t 9 місяців тому

    thank u so much sir to make my coding journey easier

  • @rudrakshdd1025
    @rudrakshdd1025 24 дні тому +1

    1:57:31....Here we would not get any output at all because there's a semicolon after while, so the code inside curly braces{} would not be executed by the compiler

  • @kamalpreetsingh9859
    @kamalpreetsingh9859 Рік тому +3

    Hello sir, i have a doubt. in fibbonacci series, why don't we print the value of a instead of sum
    by doing so we would not have to change n to n-2 in loop and also there wont be any need to to change value of sum from 0 to 1.
    int n;
    printf("Enter a number : ");
    scanf("%d",&n);
    int a=1;
    int b=1;
    int sum = 0;
    for (int i=1; i

    • @tamiurkhan1076
      @tamiurkhan1076 Рік тому

      Sir please just like our comments
      When we see you will check our comments 🥰

  • @nidhiraj9686
    @nidhiraj9686 Рік тому +14

    sir maza aa gya, please bring lec4 asap and thank you so much

  • @MattamSujitha
    @MattamSujitha 3 місяці тому +2

    Sir in 2nd question
    predict the output for while loop..
    Int I=1;
    While(I

  • @user-wk5ir8uv9i
    @user-wk5ir8uv9i 5 місяців тому

    Hamlog jaisa kamjor students ke liye aap jaise teacher hi ek ummid ka Kiran hote h sir
    Thank you so much sir ❤❤

  • @mrcow6531
    @mrcow6531 Рік тому +10

    2:15:52 The output is- 3 1, 1 3, 0 4, -1 5 not only 3 1

    • @Iqmaverick
      @Iqmaverick Рік тому +1

      because of garbage value of z i guess

    • @sahilnandy5550
      @sahilnandy5550 Рік тому +2

      sir forgot to repeat the loop

    • @mr.techeditor8763
      @mr.techeditor8763 8 місяців тому

      Yes loop will repeat again

    • @aishujr
      @aishujr 6 місяців тому

      yes loop will repeat again

    • @aryansharma-qi9wd
      @aryansharma-qi9wd 4 місяці тому

      hw question output is-40, 31, 22, 13, 04

  • @TheFlavorFactory-Ankita
    @TheFlavorFactory-Ankita 6 місяців тому +4

    Sir we need a teacher like you 😀

  • @Harshitsingh-fw3us
    @Harshitsingh-fw3us 10 місяців тому +2

    ITS REALLY HELPFUL SIR, THANKS A LOT SIR;

  • @dhairyabaranwal1866
    @dhairyabaranwal1866 6 місяців тому +1

    Thank you sir. this lecture took a lot of time to complete. As I am currently in my comfort zone at home. I took 5 days to complete this one lecture. But I will study more from now.

  • @SagarSAGAR-ms2pn
    @SagarSAGAR-ms2pn 8 місяців тому +3

    thank you sir best explaination

  • @aaryanyadav3732
    @aaryanyadav3732 Рік тому +5

    I am waiting .. For new lecture... 🤗🤗

  • @srivastavKhushi_783
    @srivastavKhushi_783 9 місяців тому +2

    completely enjoyful lecture ❤

  • @averagestudent118
    @averagestudent118 10 місяців тому

    For this Problem 1:07:41 we can get the same output with this code and we dont even have to make another variable but is this a good approach?
    for (int i = 100; i > 0; i -= 3)
    {
    printf("%d ", i);
    }
    return 0;

  • @kumar0752
    @kumar0752 Рік тому +6

    Generalized Code For Printing Reverse Of A Number :
    lastdigit = number % 10 ;
    reverse = (reverse *10) + lastdigit ;
    n= n/10 ;

    • @nishantsingh3216
      @nishantsingh3216 Рік тому

      In this code we do not print reverse of 2000 we get 2 as answer or any number which last with zero will not work in this code. Write code for every number not for specific number.

  • @sanyabaranwal5768
    @sanyabaranwal5768 10 місяців тому +3

    Sir at 1:57:21 while is having semicolon over there...then it will terminate the line??...then how output is coming???

    • @VISHAL-DOES
      @VISHAL-DOES 10 місяців тому

      Right i also think it's terminate

  • @kuNal247.-__-
    @kuNal247.-__- 3 місяці тому +1

    Problem number 8 To check number is prime or not
    Wala solution ma thoda sa error hai
    Agar hum 15,45 print karta hai to output ma prime number aa ta hai

  • @ManishaPal-xw4ko
    @ManishaPal-xw4ko 9 місяців тому

    Yah video bahut achha laga sir . Aur achhe se samajh me bhi aaya mujhe

  • @madhubera4808
    @madhubera4808 4 місяці тому +3

    Who are now second semester? ❤and understand this lecture very easy way 💚

  • @user-pp4sg4kz1o
    @user-pp4sg4kz1o 8 місяців тому +10

    Kon-2 h jisko class teacher ka bilkul bhi samaz nhi aata😅

  • @annann256
    @annann256 2 місяці тому +1

    Sir in 1:57:15 it will be an infinite loop, as there's a semicolon after while.

    • @AdarshSingh-tm2ir
      @AdarshSingh-tm2ir Місяць тому

      Bhai Mera to koe output hi nahi de raha hai😂😂

  • @sandipmahish2645
    @sandipmahish2645 10 місяців тому

    Great lecture sir!! Bohot Maja aya.

  • @saiemkhan5637
    @saiemkhan5637 Рік тому +3

    Sir please continue this C language series

  • @ayushsahu1596
    @ayushsahu1596 Рік тому +5

    2:53:47 anyone give the code

  • @myclasss206
    @myclasss206 8 місяців тому

    Thank you sir
    You are amazing teacher
    Sir aap aisa he video bnaye rheya hmara jaisa students ke leya ye bhut important hai
    Thank you sir 🙇🙇

  • @panagsjboss1385
    @panagsjboss1385 11 місяців тому

    Really a greate and very helpful tutorial🙏🙏🙏🙏❤️❤️

  • @thestarary9412
    @thestarary9412 2 місяці тому +12

    Who is doing this in second year 😂😂

    • @SarthakBarad
      @SarthakBarad Місяць тому +1

      Is this needed in 2Year i m in 2 sem of 1 year and preparing it for exam so tell me if it imp then i should take it seriously

    • @aniwayindia
      @aniwayindia Місяць тому

      😢😅

    • @NikhilSingh...
      @NikhilSingh... 10 днів тому

      You😂😂😅

  • @CodingLover77
    @CodingLover77 Рік тому +3

    Sir pura complete kab tak ho jayega C language please sir bta dijiye

  • @angadsingh4260
    @angadsingh4260 21 день тому +1

    Sir at 2:40:22 i did this problem by different method
    int store;
    int lastdigit;
    while(n!=0){
    lastdigit=n%10;
    store= lastdigit;
    n=n/10;
    printf("%d",store);
    }
    Plz tell is this correct or not

  • @Sohan97498
    @Sohan97498 3 місяці тому +1

    Sir The question at 1:57:27
    The code will not be able to run cause
    after while(.....)there is a unexpected expression ' ; '
    without ' ; 'it will print 1 to 10

  • @mr.satyam7888
    @mr.satyam7888 3 місяці тому +29

    Who are from 2nd semester students