18 - ITERATIVE STATEMENTS PART-1 - C PROGRAMMING

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • Loops can be defined as a process of executing a block of statements repeatedly .
    While Loop
    Do While Loop
    For Loop

Комментарии • 163

  • @revathic5863
    @revathic5863 5 лет назад +22

    Thank u Sir. I am maths student. I have skill paper c. From yesterday I was seeing all your videos. I learned lot of things. Today I wrote exam well. Thank you so much Sir. U r very good teacher. Because a non major student also can understand things very well. Thank u so much Sir

  • @ravichandra-wg3ou
    @ravichandra-wg3ou 5 лет назад +17

    I hope i have a teacher like you, very mature explanation!!

  • @komalsharma9890
    @komalsharma9890 6 лет назад +22

    good job sir ... ur lecture is so interesting and easy to understand. . it help me a lot to clear my every concept.. Thank u sir

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +3

      hi komal
      thanks for your interest towards our channel and watching my sessions.
      if possible make a selfie video having a feedback regarding our channel and send it to my whatsapp number 9885466061 so that i would like to upload the feedback on our channel.
      if possible send me soon and its so valuable for our channel.expecting the feedback from you.

    • @jatinthakur2051
      @jatinthakur2051 4 года назад

      @@sundeepsaradhi sir why do we write statement x at the end

    • @bindubindu3903
      @bindubindu3903 3 года назад

      Can we write same program using if statement

  • @sasikumarreddyanipireddy
    @sasikumarreddyanipireddy 4 года назад +8

    Am feeling very happy ... After watching this concept in ur channel..
    Thank u for supporting us sir....

  • @sirichandana605
    @sirichandana605 4 года назад +3

    the way you explaining is superb sir i have told to my friend easy to understand from this channel thank you sir so much

  • @yugendhrav7825
    @yugendhrav7825 4 года назад +1

    thankss a lot sir.... best c programming teacher ever for free......

  • @saichandua7901
    @saichandua7901 5 лет назад +5

    Thank you so much Sir for the session. It was very interesting even for a guy with out programming background like me.

  • @jackmakara9121
    @jackmakara9121 6 лет назад +5

    Thanks Sir. Very simplified and clear explaination. You are doing a great job. I always find your video helpful. I'm sharing your videos with my friends.

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi zag
      thanks for your interest towards our channel and thanks for giving support for our channel.

  • @alishaparajuli5664
    @alishaparajuli5664 7 лет назад +2

    as a bio student in PUC , i appreciate our respected sir for uploading this helpful video .. Thank you once again ..

    • @sundeepsaradhi
      @sundeepsaradhi  7 лет назад

      Hi Alisha Parajuli thanks for listening to my sessions and if you like my sessions do subscribe and share my sessions with your friends.

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi alisha
      i would like to have a FEEDBACK ( in the form of video not more than 15 sec) from you towards our channel and my sessions.so that i will collect feedbacks from all and will upload in youtube,
      Send your valuable FEEDBACK to my WhatsApp number : +91 9885466061 (91 is the country code)
      waiting for your valuable feedback.
      ruclips.net/user/sundeepsaradhi
      SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE

  • @krishnagowtham3027
    @krishnagowtham3027 4 года назад +4

    Sir ,I have more interesting to listen Ur lecture's
    Thank u so much sir

  • @zeozerside
    @zeozerside 3 года назад +1

    You're better than my professor, who was trying to explain it for more than 2hrs!!

  • @Janani504
    @Janani504 5 лет назад +2

    When we are using while condition ?
    When we using dowhile condition?
    When we are for ? Why

  • @abiykifle602
    @abiykifle602 6 лет назад +4

    10Q very much!!!!! keep teaching..... God Bless you

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi abiy
      thanks for watching my sessions and supporting our channel. plz do subscribe to our channel and keep following my sessions.

    • @shivakarthikrathod2026
      @shivakarthikrathod2026 3 года назад

      @@sundeepsaradhi sir python meeeda vedios cheyandi

  • @mspavan2595
    @mspavan2595 5 лет назад +1

    Tank u so much sirr it is easy to learn through ur videos

  • @mahalakshmisettimahalakshm5473
    @mahalakshmisettimahalakshm5473 3 года назад

    Upto these before videos are excellent sir I'm feeling happy by watching those

  • @ravikirangavireddy303
    @ravikirangavireddy303 4 года назад +1

    Nice sir.we also want these type of sir in our college

  • @geethu1093
    @geethu1093 2 года назад +2

    Can you do a complete tutorial on full stack development?these videos are really useful

  • @_sruthiDesai
    @_sruthiDesai 5 лет назад +1

    Excellent teaching sir very interesting and understanding plz upload more videos on data structures also for us tq

  • @5l3swethuprasad67
    @5l3swethuprasad67 3 года назад

    Ur teaching is very good mind blowing explanation

  • @keerthivasang1178
    @keerthivasang1178 6 лет назад +4

    Super sir!!!!

  • @neerajghorpade6623
    @neerajghorpade6623 5 лет назад

    sir your teaching is very easy to understand. Thanks for the video.
    Doubts are cleared.

  • @dollykumavath8747
    @dollykumavath8747 4 года назад +2

    Thank you for superb explanation....
    But
    One doubt sir
    How can I know that when should I use for,while,do while loops
    Because there function is same but syntax different .

  • @yanjarappak6439
    @yanjarappak6439 4 года назад +1

    Good job sir

  • @s.harshini9179
    @s.harshini9179 3 года назад

    Your lecture is so informative and easy to understand sir

  • @Phaneendra_raagu
    @Phaneendra_raagu 5 лет назад +1

    Tq
    Broo
    But complete program system lo
    Complie cheste chala baguntadhi 😊😊

  • @sciencesconnectus7001
    @sciencesconnectus7001 3 года назад

    Very happy with your explanation

  • @chintubintu4824
    @chintubintu4824 6 лет назад +1

    Sir im sagar sir.Concepts are 100 percent clear sir pls work out programmes based on all the topics sir mainly programmes based on with and without function sir and pls rearrange the c programming videos sir

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +1

      hi sagar
      thanks for your interest towards our channel.soon i will upload them. keep following.

  • @bestyav5529
    @bestyav5529 5 лет назад

    With such a nice explanation I'll do great things... Thanks 1000000

  • @madhurteotia6043
    @madhurteotia6043 5 лет назад +1

    Very helpful

  • @pkyadavofficial3077
    @pkyadavofficial3077 6 лет назад +2

    thank you sir for ur great explanaion ....

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi pramod
      thanks for your interest towards our channel and share my sessions with
      your friends and subscribe to our channel.Keep following our channel.

  • @kumaresan.r6090
    @kumaresan.r6090 5 лет назад +1

    Super sir.....

  • @sivashankars4171
    @sivashankars4171 5 лет назад +1

    Clearly understand thank you so much for your vedio.

  • @jaykumarpatil859
    @jaykumarpatil859 4 года назад +1

    Very nice sir, Thanking you sir

  • @jayaavii
    @jayaavii 5 лет назад

    Thnk u sir i lke the way you teach..... You teach very well sir

  • @fasak840
    @fasak840 3 года назад +1

    Sir do while lo 101 kudaa print avtade kadhaa sir
    Mer first iteration jaregena tarvata correct or wrong check chasukuntade ane chapparu

  • @bigbang6669
    @bigbang6669 4 года назад

    u'r teaching is very good sir🤗🤗🤗

  • @PRIYA_SINGH-j9w
    @PRIYA_SINGH-j9w 3 года назад +1

    Nice video

  • @luckyim6504
    @luckyim6504 3 года назад

    This prof is better than uoft prof

  • @vishalbhardwaj7214
    @vishalbhardwaj7214 4 года назад +1

    u r best

  • @AnithaSree123
    @AnithaSree123 3 года назад +1

    Sir, what's the use of do- while loop? I mean why we need to execute the block of the statement first?

  • @saineeraj1326
    @saineeraj1326 3 года назад +1

    Sir why did u taken 0 in while conduction,where are checking for natural number know natural numbers 1-100

  • @bunny-zm2kg
    @bunny-zm2kg 6 лет назад +3

    I have one doubt sir ,you told that updation means i+2 ,but u re adding i+1 in do while example in this video that is right or not
    I mean 98+2=100 and 100+2 =102

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +1

      hi anusha
      here updation means we have to update the loop variable and its not restricted to use only increment operator.
      Depends on logic we have to write the updation.
      Hope your doubt has been clarified.

    • @bunny-zm2kg
      @bunny-zm2kg 6 лет назад

      Thank u sir

  • @sathivenkatreddy5798
    @sathivenkatreddy5798 3 года назад

    Ur explanation is too gud sir it will directly reach our brain without any doubt
    Sir plz tell ous the imp questions for second semester So that we can prepare for exams.

  • @madhavipabbireddy9262
    @madhavipabbireddy9262 2 года назад

    Thank you sir for super explaining

  • @Q2MITSU
    @Q2MITSU 5 лет назад +1

    thank you man you're the best

  • @timmy2299
    @timmy2299 2 года назад

    incredible sir

  • @PAVA1GKWORLD
    @PAVA1GKWORLD 5 лет назад

    Superb sir

  • @kleelanagababu3889
    @kleelanagababu3889 3 года назад +1

    Super sir

  • @arunk1038
    @arunk1038 6 лет назад +3

    hello sir my compiller is not displaying nothing in output, eventhough everything is correct, its displaying blank output, please help me.

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi
      post the program in comment section so that i will try to solve this.

  • @kavaliramathulasi4250
    @kavaliramathulasi4250 5 лет назад +1

    Thank you so much sir 🙂🙂

  • @esraaabdelhallem8575
    @esraaabdelhallem8575 6 лет назад +1

    ur lecture is amazing sir , but please can you rearrange the C programming play list

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +2

      thank you and sure i will change the display order.

  • @roshanbanapuram3388
    @roshanbanapuram3388 5 лет назад +1

    what difference will it make if use ++i instead of i++

  • @ind-ram
    @ind-ram 5 лет назад

    your lecture is superb sir,
    but videos are very lengthy, make short as much as possible which will help us to download your playlist easily

  • @abiykifle602
    @abiykifle602 6 лет назад +1

    you have an intereting presentation.what if we use only one of the method. why we are required to use different methods?

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi abiy
      here While and For loop are called pretest loops where first the condition will be verified and if the condition is true then only control will enters into the loop
      While loop is used when user doesn't know the number of iterations.
      For loop is used when user knows the number of iterations.
      Do-While loop is called as Post_Test loop where first the control enters into the body of the loop and at the end the condition will be verified.
      hope your doubt have been clarified.

  • @MuhammadBilal-st2fy
    @MuhammadBilal-st2fy 4 года назад +1

    number is 273747...digit is 7......how we will count digit 7 from the given number....thankyou

    • @MuhammadBilal-st2fy
      @MuhammadBilal-st2fy 4 года назад

      by the use of while loop and counter.

    • @kalyandasareddy5972
      @kalyandasareddy5972 3 года назад

      In that case you can use the below for loop
      for(int i=273747;i>=10;i=i%10)
      {
      counting statement;
      I=I/10;
      }

  • @gillaanudeep3128
    @gillaanudeep3128 6 лет назад +3

    When semi coloum should be placed in while sir

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +2

      hi anudeep
      we should not keep the semicolon in while loop
      If you are using do while loop then semicolon should be placed after the while loop
      while(condition)
      {
      statements;
      }
      do
      {
      statements;
      }while(condition);
      Hope your doubt has been clarified.

  • @kamuriabigail7475
    @kamuriabigail7475 3 года назад +1

    thank you so so much

  • @rakshithathum7783
    @rakshithathum7783 3 года назад +1

    Thanks sir

  • @rajaumairshahzad6213
    @rajaumairshahzad6213 4 года назад

    sir condition should be while (i

  • @sukhbirrana9779
    @sukhbirrana9779 4 года назад

    Respected Sir,
    In switch case you have mentioned that if no break statement is used, then all the cases shall be executed whether condion of case is met with switch or not ? I think that if break statement is not used, then the statements under that case shall be executed which met the condition of switch but in absence of a break statement, the program will check all the following cases until it faces a break statement or closing brace but no execution will take place because condition does not met of these cases. Kindly confirm this ambiguity.
    With Regards,
    S S RANA.

  • @MdLITON-vo1nq
    @MdLITON-vo1nq 4 года назад

    Really great....

  • @venkatasaivasu1014
    @venkatasaivasu1014 6 лет назад

    So helpful.. thankyou so much sir..

  • @syedrizvi2556
    @syedrizvi2556 6 лет назад +1

    amazing sir........

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi syed
      thanks for watching my sessions and interest towards our channel.

  • @005-abhinav8
    @005-abhinav8 3 года назад

    Sir good explanation and I have a doubt sir that is - what is the difference between while loop and do while loop in there uses

  • @merinsebastian2019
    @merinsebastian2019 4 года назад

    Perfect class sir..

  • @ruthdlc3820
    @ruthdlc3820 6 лет назад +1

    Thank u sir! How to solve arithmetic series?

  • @prakathi.8
    @prakathi.8 5 лет назад

    Thk u sir for good explanation...these concepts will same in c++ loop?

  • @venkatnirmal3385
    @venkatnirmal3385 2 года назад

    🙌🙌

  • @nico_tj
    @nico_tj 3 года назад

    I like your whiteboard very much

  • @mayurgamit2222
    @mayurgamit2222 6 лет назад

    Tnq sir this nice sessions...👌

  • @jnavitha2895
    @jnavitha2895 3 года назад

    Sir same example i.e, printing 1-100 natural numbers is taught in our class (your explanation is super than them)....but what is further usage of it ?

  • @arafathmohamed9415
    @arafathmohamed9415 3 года назад

    👍👍

  • @aloma.mjagroo2292
    @aloma.mjagroo2292 5 лет назад +1

    Hi I'm a complete newbie to coding and I was wondering if you or any of the ytbers could help me optimize this calculator I was building. I was hoping to make it like a real calculator where you can have a continous round of operations until you press the equal sign. The thing is I feel I used a bunch of repeating code and wanted advise on how I can shorten/ optimize it.
    #include
    #include
    #include
    #include
    double getnuM(double x);
    main()
    {
    char op = 'x';
    double a, b, c;
    clrscr();
    printf("Enter first number: ");
    scanf("%lf", &a);
    do{
    printf("Enter Operator: ");
    scanf("%c", &op);

    switch(op)
    {
    case 's' : c = sqrt(a);printf("The square root of %f is: %f
    ", a, c);break;
    case '+' : b = getnuM(b);c = a + b;printf("%f + %f = %f
    ", a, b, c);break;
    case '-' : b = getnuM(b);c = a - b;printf("%f - %f = %f
    ", a, b, c);break;
    case '*' : b = getnuM(b);c = a * b;printf("%f * %f = %f
    ", a, b, c);break;
    case '/' : b = getnuM(b);c = a / b;printf("%f / %f = %f
    ", a, b, c);break;
    case 'p' : b = getnuM(b);c = pow(a, b);printf("%f to the power of %f = %f
    ", a, b, c);break;
    default: printf("Invalid Operator or End of operation: %f
    ", c);
    }
    a = c;
    }while (op == '+' || op == '-' || op == '*' || op == '/' || op == 'p'|| op == 's');
    //getch();
    }
    double getnuM(double x)
    {
    printf("Enter next number: ");
    scanf("%lf", &x);
    return x;
    }

  • @jayasreebantu9033
    @jayasreebantu9033 4 года назад

    U r super sirr

  • @findmenow2189
    @findmenow2189 7 лет назад +1

    thank u sir so helpful

    • @sundeepsaradhi
      @sundeepsaradhi  7 лет назад

      thanks for your interest towards our channel.

  • @gopi3817
    @gopi3817 7 лет назад +2

    Sir,program ala cheyalo teliyadam ledu.oka problem echinappudu

  • @chinni5959-pr
    @chinni5959-pr 4 года назад +1

    Sir explain while and for loops in files

  • @rohitkumarsinha1702
    @rohitkumarsinha1702 6 лет назад +1

    Sir in do while there shouldn't be 101 printed in the repeatition of block before execution of 102 and control of 102 should be lost and move out of the block

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi
      didn't get your doubt plz elaborate it so that it would be easy for me to clarify.

    • @rohitkumarsinha1702
      @rohitkumarsinha1702 6 лет назад +1

      Sir I was saying last output value should be 101 in do-while loop because 101 would be printed before checking the condition

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +1

      No here we are incrementing the variable after the printf statement so i value will be 101 but it will not be printed. if we write increment statement above the printf statement we will get 101 also.
      Hope your doubt has been clarified.
      If you find difficulty let me know i will clarify your doubt.

    • @rohitkumarsinha1702
      @rohitkumarsinha1702 6 лет назад

      Yes sir my doubt has been cleared thankyou .... I one more request sir please make videos on c++ language as well

  • @gopi3817
    @gopi3817 7 лет назад +3

    Sir how to solve problems in cp

    • @sundeepsaradhi
      @sundeepsaradhi  7 лет назад

      hi gopi
      actually i didnt understood your question.

  • @saitejagajjala7008
    @saitejagajjala7008 3 года назад

    Sir now if we take i=1 then we will get numbers from 1 to 100 na

  • @jatin2921
    @jatin2921 3 года назад

    Use of multiple loop statements?

  • @karimoriakhel8287
    @karimoriakhel8287 4 года назад

    thank u sir that was helpful

  • @josephkamobni1903
    @josephkamobni1903 Год назад

    The printf why do you add % is it not scanf that we add %

  • @sampoornamn8049
    @sampoornamn8049 5 лет назад

    Sir why are we putting i+2,i+3. etc.please clarify this dought for me

  • @gadhamshettyyamini8314
    @gadhamshettyyamini8314 5 лет назад

    While we are solving that problem, at iteration 3 there is swap but while explaining with the prog we got no swap,????? Why

  • @Zynbvlogs26
    @Zynbvlogs26 3 года назад

    Nice

  • @akshaydevhare05
    @akshaydevhare05 Год назад

    Thank u sir

  • @balipavankalyan5008
    @balipavankalyan5008 6 лет назад +1

    Thank. You so much

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi pavan
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @pavanreddy3179
    @pavanreddy3179 3 года назад

    Tq so much sir

  • @005-abhinav8
    @005-abhinav8 3 года назад

    In what kind of uses sir

  • @nareshpadma3295
    @nareshpadma3295 5 лет назад

    Sir koncham fast ga chapande plzz i like u r explanation tq for helping me sir thanks a lot sir

  • @tusidas2158
    @tusidas2158 3 года назад

    What will happen if you enter I+1
    In do while loop

  • @leelakalyani5113
    @leelakalyani5113 5 лет назад +2

    Where is for loop sirr

  • @MK-gr4ue
    @MK-gr4ue 6 лет назад +1

    Tnx sir.......

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад +1

      hi M K
      thanks for watching my sessions and supporting our channel.keep following our channel.

  • @chandhiniiv4266
    @chandhiniiv4266 4 года назад

    Sir please tell about goto statements also

  • @-chanduKadiyala
    @-chanduKadiyala 4 года назад +1

    Sir after printing 100 i++ means 101 first it goes to do so I thought that 101 also print after then it check a condition then it fails so 102 is not printing am I correct sit

  • @ankamallaharishkumar8108
    @ankamallaharishkumar8108 6 лет назад +1

    Sir y we used includein c

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi harish
      this header file links all the standard input and output functions to our program like printf, scanf functions.

    • @suryanarayanan8594
      @suryanarayanan8594 6 лет назад +1

      because .h consider as header file and it includes the printf and scanf statement inside thier own library functions hence it called as standard input and output function

    • @shalininath3655
      @shalininath3655 6 лет назад

      Sir in do while loop we use condition after checking the statements so my question is why we use semicolon after while???

  • @samyukthareddy1498
    @samyukthareddy1498 6 лет назад +1

    When we should use i-- sir

    • @kalyandasareddy5972
      @kalyandasareddy5972 3 года назад

      When you want to print a number from higher values to lower values .for example 100 to 1

  • @balipavankalyan5008
    @balipavankalyan5008 6 лет назад +1

    How sir how can we use scanf function here??

    • @sundeepsaradhi
      @sundeepsaradhi  6 лет назад

      hi pavan
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @najeermohammed3947
    @najeermohammed3947 2 года назад

    One more sample program