18 - ITERATIVE STATEMENTS PART-1 - C PROGRAMMING

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 163

  • @revathic5863
    @revathic5863 6 ปีที่แล้ว +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!!

  • @sasikumarreddyanipireddy
    @sasikumarreddyanipireddy 4 ปีที่แล้ว +8

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

  • @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

  • @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.

  • @mahalakshmisettimahalakshm5473
    @mahalakshmisettimahalakshm5473 3 ปีที่แล้ว

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

  • @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  7 ปีที่แล้ว

      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.
      th-cam.com/users/sundeepsaradhi
      SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE

  • @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 .

  • @5l3swethuprasad67
    @5l3swethuprasad67 3 ปีที่แล้ว

    Ur teaching is very good mind blowing explanation

  • @geethu1093
    @geethu1093 3 ปีที่แล้ว +2

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

  • @jackmakara9121
    @jackmakara9121 7 ปีที่แล้ว +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  7 ปีที่แล้ว

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

  • @zeozerside
    @zeozerside 3 ปีที่แล้ว +1

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

  • @krishnagowtham3027
    @krishnagowtham3027 5 ปีที่แล้ว +4

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

  • @Janani504
    @Janani504 5 ปีที่แล้ว +2

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

  • @_sruthiDesai
    @_sruthiDesai 5 ปีที่แล้ว +1

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

  • @neerajghorpade6623
    @neerajghorpade6623 5 ปีที่แล้ว

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

  • @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?

  • @sciencesconnectus7001
    @sciencesconnectus7001 3 ปีที่แล้ว

    Very happy with your explanation

  • @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

  • @jaykumarpatil859
    @jaykumarpatil859 4 ปีที่แล้ว +1

    Very nice sir, Thanking you sir

  • @bestyav5529
    @bestyav5529 6 ปีที่แล้ว

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

  • @mspavan2595
    @mspavan2595 6 ปีที่แล้ว +1

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

  • @s.harshini9179
    @s.harshini9179 4 ปีที่แล้ว

    Your lecture is so informative and easy to understand sir

  • @saineeraj1326
    @saineeraj1326 4 ปีที่แล้ว +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

  • @ravikirangavireddy303
    @ravikirangavireddy303 5 ปีที่แล้ว +1

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

  • @madhavipabbireddy9262
    @madhavipabbireddy9262 2 ปีที่แล้ว

    Thank you sir for super explaining

  • @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

  • @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.

  • @roshanbanapuram3388
    @roshanbanapuram3388 5 ปีที่แล้ว +1

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

  • @yanjarappak6439
    @yanjarappak6439 5 ปีที่แล้ว +1

    Good job sir

  • @madhurteotia6043
    @madhurteotia6043 5 ปีที่แล้ว +1

    Very helpful

  • @Phaneendra_raagu
    @Phaneendra_raagu 6 ปีที่แล้ว +1

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

  • @bigbang6669
    @bigbang6669 5 ปีที่แล้ว

    u'r teaching is very good sir🤗🤗🤗

  • @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 ?

  • @keerthivasang1178
    @keerthivasang1178 6 ปีที่แล้ว +4

    Super sir!!!!

  • @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.

  • @rakshithathum7783
    @rakshithathum7783 3 ปีที่แล้ว +1

    Thanks sir

  • @sivashankars4171
    @sivashankars4171 5 ปีที่แล้ว +1

    Clearly understand thank you so much for your vedio.

  • @jayaavii
    @jayaavii 6 ปีที่แล้ว

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

  • @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

  • @sathivenkatreddy5798
    @sathivenkatreddy5798 4 ปีที่แล้ว

    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.

  • @timmy2299
    @timmy2299 2 ปีที่แล้ว

    incredible sir

  • @PRIYA_SINGH-j9w
    @PRIYA_SINGH-j9w 3 ปีที่แล้ว +1

    Nice video

  • @vishalbhardwaj7214
    @vishalbhardwaj7214 4 ปีที่แล้ว +1

    u r best

  • @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.

  • @kumaresan.r6090
    @kumaresan.r6090 5 ปีที่แล้ว +1

    Super sir.....

  • @rajaumairshahzad6213
    @rajaumairshahzad6213 4 ปีที่แล้ว

    sir condition should be while (i

  • @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.

  • @prakathi.8
    @prakathi.8 6 ปีที่แล้ว

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

  • @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.

  • @ruthdlc3820
    @ruthdlc3820 6 ปีที่แล้ว +1

    Thank u sir! How to solve arithmetic series?

  • @MdLITON-vo1nq
    @MdLITON-vo1nq 4 ปีที่แล้ว

    Really great....

  • @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.

  • @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.

  • @sampoornamn8049
    @sampoornamn8049 5 ปีที่แล้ว

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

  • @luckyim6504
    @luckyim6504 3 ปีที่แล้ว

    This prof is better than uoft prof

  • @venkatasaivasu1014
    @venkatasaivasu1014 6 ปีที่แล้ว

    So helpful.. thankyou so much sir..

  • @kleelanagababu3889
    @kleelanagababu3889 3 ปีที่แล้ว +1

    Super sir

  • @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

  • @merinsebastian2019
    @merinsebastian2019 4 ปีที่แล้ว

    Perfect class sir..

  • @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;
    }

  • @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

  • @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

  • @saitejagajjala7008
    @saitejagajjala7008 3 ปีที่แล้ว

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

  • @kavaliramathulasi4250
    @kavaliramathulasi4250 5 ปีที่แล้ว +1

    Thank you so much sir 🙂🙂

  • @mayurgamit2222
    @mayurgamit2222 6 ปีที่แล้ว

    Tnq sir this nice sessions...👌

  • @kamuriabigail7475
    @kamuriabigail7475 4 ปีที่แล้ว +1

    thank you so so much

  • @Q2MITSU
    @Q2MITSU 5 ปีที่แล้ว +1

    thank you man you're the best

  • @jatin2921
    @jatin2921 3 ปีที่แล้ว

    Use of multiple loop statements?

  • @venkatnirmal3385
    @venkatnirmal3385 2 ปีที่แล้ว

    🙌🙌

  • @PAVA1GKWORLD
    @PAVA1GKWORLD 5 ปีที่แล้ว

    Superb sir

  • @syedrizvi2556
    @syedrizvi2556 6 ปีที่แล้ว +1

    amazing sir........

    • @sundeepsaradhi
      @sundeepsaradhi  6 ปีที่แล้ว

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

  • @nico_tj
    @nico_tj 3 ปีที่แล้ว

    I like your whiteboard very much

  • @005-abhinav8
    @005-abhinav8 3 ปีที่แล้ว

    In what kind of uses sir

  • @chinni5959-pr
    @chinni5959-pr 4 ปีที่แล้ว +1

    Sir explain while and for loops in files

  • @josephkamobni1903
    @josephkamobni1903 ปีที่แล้ว

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

  • @tusidas2158
    @tusidas2158 3 ปีที่แล้ว

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

  • @akshaydevhare05
    @akshaydevhare05 ปีที่แล้ว

    Thank u sir

  • @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;
      }

  • @jayasreebantu9033
    @jayasreebantu9033 4 ปีที่แล้ว

    U r super sirr

  • @adityalokhande7465
    @adityalokhande7465 5 ปีที่แล้ว

    What happens if we do not use braces after " do"

  • @karimoriakhel8287
    @karimoriakhel8287 4 ปีที่แล้ว

    thank u sir that was helpful

  • @roshanbanapuram3388
    @roshanbanapuram3388 5 ปีที่แล้ว

    can we use upgrading like i=i+2 and i=i+3 etc etc in while loop too

  • @gopi3817
    @gopi3817 7 ปีที่แล้ว +3

    Sir how to solve problems in cp

    • @sundeepsaradhi
      @sundeepsaradhi  7 ปีที่แล้ว

      hi gopi
      actually i didnt understood your question.

  • @arafathmohamed9415
    @arafathmohamed9415 3 ปีที่แล้ว

    👍👍

  • @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???

  • @chandhiniiv4266
    @chandhiniiv4266 5 ปีที่แล้ว

    Sir please tell about goto statements also

  • @Zynbvlogs26
    @Zynbvlogs26 3 ปีที่แล้ว

    Nice

  • @gopi3817
    @gopi3817 7 ปีที่แล้ว +2

    Sir,program ala cheyalo teliyadam ledu.oka problem echinappudu

  • @nareshpadma3295
    @nareshpadma3295 5 ปีที่แล้ว

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

  • @findmenow2189
    @findmenow2189 7 ปีที่แล้ว +1

    thank u sir so helpful

    • @sundeepsaradhi
      @sundeepsaradhi  7 ปีที่แล้ว

      thanks for your interest towards our channel.

  • @challasuryanarayana8607
    @challasuryanarayana8607 4 ปีที่แล้ว

    You have initialized with 0 but before u told I am printing natural numbers, don't u know 0 is not a natural number

  • @pavanreddy3179
    @pavanreddy3179 3 ปีที่แล้ว

    Tq so much sir

  • @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

  • @leelakalyani5113
    @leelakalyani5113 5 ปีที่แล้ว +2

    Where is for loop sirr

  • @-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

  • @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.