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
It can also be done by
Char a;
While (a! =x) {
Cout
Thank you very much! I passed the exam because of you hahahah :D Keep it up
hey, Anil bhai nice video. but your response time to the comments is very poor.
i can understand.
but busy with lot of work :)
Thanks sir ...thanku soo much....i got to make language of c++....😊😊😊
Love your videos! keep up the good work !!
Awesome videos....these videos really helps me a lot.. thanku😊😊
my pleasure.
keep learning :)
Hi, anil ,I'm understanding every thing, thanks a lot.
But I need your advice about solving problems in c++.
What about for capital letters also is it something like while (input !='x', 'X') or something ?
Sorryf or late reply.
use
while (input !='x' && input != 'X')
awesome video tutorial
thank you :)
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>?
S it's true bcoz c++ and Java both are object oriented programming languages
sir why we need to write x in single parentheses , and which things are written in single parentheses and double parentheses
How do you insert a do-while loop inside a do-while loop?
are only those expression is written in while which can terminate the loop?
no. you can write any expression.
It's based on variables that you use
awesome thank you
welcome :)
Very helpful
Glad it helped
Thank you sir
Welcome
Nice Video 👌👍 sir
thank you :)
Please tell me the difference b/w while and do-while loop
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
Sir which type of c++ is this plz specify turbo, yogisoft, or other??
mayank Chhabra turbo
can i inclide if statement also in between do statement ??????????????
you can have like
do{
if(){
}
.......
}while(...);
If i use int instead of char , program continues running why ❓
Sir is it important to use a character instead of int in DoWhile loop????
no not at all.
LearningLad My program is not working as I am not using namespace std but #include why?
please tell me what is char and how it is different from int or float
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.
//Done
#include
using namespace std;
int main()
{
char input;
do{
cout
INSTEAD OF return 0; ,IF I WRITE return 1 OR ANY INTEGER; ,THE PROGRAM IS STILL EXECUTED,THEN WHY I NEED TO WRITE ZERO
want java's complete series sir plz post it
Ekta Gemnani
i'll work on it asap :)
currently i'm a bit busy with my other projects :)
y do we use char in above programming
i didn't get what you do in while loop
while ( input!='x'); ???
pls tell me
that means "While The input is not equal to X"
Why semicolon is used after while
same code but on console it is not stooping
check the loop condition and the used variable for forming the condition.
i have one problem can you help me
plz tell me
pls post your problem
why you use cout I think it's printf() and where is getch ()?
printf is used in c language.
this is c++
can anyone tell me why r we using the 'x' but why not only x in the while loop help plss..
Thx a lot peterolen
do while isn't clear yet! plz more videos is needed
Why we use char here??
Char means letters. Int means numbers
can u explain the purpose of (char) ???
you have to have a char so you can enter a single character to exit (x), you could also use a string.
why did you use single quotes ? '
+Peterolen ok thanx bro
why is x on single quotes
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
how to make simlpe calculator in while loop
------------------------------------------------------------------------
#include
using namespace std;
int main()
{
char a ;
do{
cout
a == 'x'
== is for comparison.
= for assignment
do while loop