Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,037 questions

40,788 answers

573 users

How to use do while loop in C++

1 Answer

0 votes
#include <iostream>

int main()
{
    int i = 0;
    do { 
        std::cout << i++ << "\n"; 
    } while (i < 10); 
}
 
 
 
 
/*
run:
 
0
1
2
3
4
5
6
7
8
9

*/

 





answered Nov 28, 2022 by avibootz

Related questions

2 answers 52 views
52 views asked Oct 7, 2022 by avibootz
1 answer 62 views
2 answers 78 views
78 views asked Apr 23, 2021 by avibootz
1 answer 91 views
91 views asked Oct 15, 2020 by avibootz
1 answer 76 views
76 views asked Oct 15, 2020 by avibootz
...