CPP Do While Loop with Example | C++ Video Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ย. 2024
  • In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn about the do while loop in detail with example.
    You will learn the do while loop along with its syntax and example in detail.
    Visit www.LearningLad... to get the SOURCE CODE of this tutorial and to watch more free computer programming video tutorials.
    Learn Programming in HINDI at our youtube channel
    / learningladhindi
    Catch us on SocialMedia
    / learninglad
    www.google.com/...
    / learningladedu

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

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

    It can also be done by
    Char a;
    While (a! =x) {
    Cout

  • @g-gaming6703
    @g-gaming6703 3 ปีที่แล้ว

    Thank you very much! I passed the exam because of you hahahah :D Keep it up

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

    hey, Anil bhai nice video. but your response time to the comments is very poor.

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

      i can understand.
      but busy with lot of work :)

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

    Thanks sir ...thanku soo much....i got to make language of c++....😊😊😊

  • @Fr3di1993
    @Fr3di1993 9 ปีที่แล้ว +3

    Love your videos! keep up the good work !!

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

    Awesome videos....these videos really helps me a lot.. thanku😊😊

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

      my pleasure.
      keep learning :)

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

    Hi, anil ,I'm understanding every thing, thanks a lot.
    But I need your advice about solving problems in c++.

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

    What about for capital letters also is it something like while (input !='x', 'X') or something ?

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

      Sorryf or late reply.
      use
      while (input !='x' && input != 'X')

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

    awesome video tutorial

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

    sir, are these videos the complete information that one needs to be a good c++ programmer or there is anything more?
    i mean is it better to join a coaching institute like ducat or cetpa or these videos are more than enough. please reply if possible. thanking you.
    and i want to do java but i have heard people saying that if you will do c++ java will be easy for u. is it true>?

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

      S it's true bcoz c++ and Java both are object oriented programming languages

  • @pratikkumar-os5zo
    @pratikkumar-os5zo 7 ปีที่แล้ว

    sir why we need to write x in single parentheses , and which things are written in single parentheses and double parentheses

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

    How do you insert a do-while loop inside a do-while loop?

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

    are only those expression is written in while which can terminate the loop?

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

      no. you can write any expression.

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

      It's based on variables that you use

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

    awesome thank you

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

    Very helpful

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

    Thank you sir

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

    Nice Video 👌👍 sir

  • @Anonymous-yy5qr
    @Anonymous-yy5qr 7 ปีที่แล้ว +2

    Please tell me the difference b/w while and do-while loop

    • @ShivaReddy-pe1pi
      @ShivaReddy-pe1pi 6 ปีที่แล้ว

      BLOODy aSSault in while loop if statement is false it is not going to excute but whereas in do while it is excuted atleast once

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

    Sir which type of c++ is this plz specify turbo, yogisoft, or other??

  • @jatintyagi6643
    @jatintyagi6643 8 ปีที่แล้ว +2

    can i inclide if statement also in between do statement ??????????????

    • @LearningLad
      @LearningLad  8 ปีที่แล้ว +2

      you can have like
      do{
      if(){
      }
      .......
      }while(...);

  • @krishnakumar-xr1rj
    @krishnakumar-xr1rj 5 ปีที่แล้ว

    If i use int instead of char , program continues running why ❓

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

    Sir is it important to use a character instead of int in DoWhile loop????

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

      no not at all.

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

      LearningLad My program is not working as I am not using namespace std but #include why?

  • @shramanshraman5928
    @shramanshraman5928 8 ปีที่แล้ว +1

    please tell me what is char and how it is different from int or float

    • @williamtang5686
      @williamtang5686 8 ปีที่แล้ว +1

      char and int or float are pretty similar, although to the user they might appear different. For example: you can assign the character '1' to character (char character = 1; ), but at the same time it holds the VALUE 49.
      As you can see, the character '1' does not necessarily means it has the value 1, because on the ASCII table, '1' holds the value 49.

  • @mominuber
    @mominuber 9 ปีที่แล้ว +2

    //Done
    #include
    using namespace std;
    int main()
    {
    char input;
    do{
    cout

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

    INSTEAD OF return 0; ,IF I WRITE return 1 OR ANY INTEGER; ,THE PROGRAM IS STILL EXECUTED,THEN WHY I NEED TO WRITE ZERO

  • @ektagemnani5334
    @ektagemnani5334 9 ปีที่แล้ว +2

    want java's complete series sir plz post it

    • @LearningLad
      @LearningLad  9 ปีที่แล้ว +1

      Ekta Gemnani
      i'll work on it asap :)
      currently i'm a bit busy with my other projects :)

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

    y do we use char in above programming

  • @hellobrother5174
    @hellobrother5174 9 ปีที่แล้ว

    i didn't get what you do in while loop
    while ( input!='x'); ???
    pls tell me

    • @Wolpher
      @Wolpher 8 ปีที่แล้ว

      that means "While The input is not equal to X"

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

    Why semicolon is used after while

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

    same code but on console it is not stooping

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

      check the loop condition and the used variable for forming the condition.

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

    i have one problem can you help me
    plz tell me

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

      pls post your problem

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

    why you use cout I think it's printf() and where is getch ()?

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

      printf is used in c language.
      this is c++

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

    can anyone tell me why r we using the 'x' but why not only x in the while loop help plss..

  • @mahamaymon3688
    @mahamaymon3688 8 ปีที่แล้ว

    do while isn't clear yet! plz more videos is needed

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

    Why we use char here??

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

      Char means letters. Int means numbers

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

    can u explain the purpose of (char) ???

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

      you have to have a char so you can enter a single character to exit (x), you could also use a string.

  • @bondmudit1
    @bondmudit1 8 ปีที่แล้ว +1

    why did you use single quotes ? '

    • @bondmudit1
      @bondmudit1 8 ปีที่แล้ว

      +Peterolen ok thanx bro

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

    why is x on single quotes

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

    How to do this example using do while loop?
    Output:
    Menu
    A. Meals
    B. Drinks
    Input: A
    Output:
    You selected Meals
    A. Chicken
    B. Rice
    C. Go back to Menu
    Input: C
    Output:
    Menu
    A. Meals
    B. Drinks

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

    how to make simlpe calculator in while loop

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

    ------------------------------------------------------------------------
    #include
    using namespace std;
    int main()
    {
    char a ;
    do{
    cout

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

      a == 'x'
      == is for comparison.
      = for assignment

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

    do while loop