Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program using while for and do-while to outout 0-9 in order. Identify lo

ID: 3620527 • Letter: W

Question

Write a program using while for and do-while to outout 0-9 in order. Identify loop statement before printing numbers.
This is what I have:
#include<iostream>
using namespace std;
int main ()

{
int nextNumber;
int count;
int number;
const int LOW_NUM = 0;
const int HIGH_NUM = 9;
const int MAX_SESSIONS = 10;
cout << "Enter a number between " << LOW_NUM <<
" and " << HIGH_NUM << "inclusive ";
cin >> number;
while( LOW_NUM && HIGH_NUM > MAX_SESSIONS )
{
cout << " Number has already been chosen " << endl;
cout << "Please choose a different number " << LOW_NUM << " through " << HIGH_NUM << "";
cin >> number;
}
for(count + 2,LOW_NUM = HIGH_NUM
count <= LOW_NUM.HIGH_NUM; ++count);
{
nextNumber += 1;
if(nextNumber > 9)
{
cout << "number #" << count << endl;
}
{

system ("pause");
return 0;
}

Explanation / Answer

please rate - thanks I think you were over analyzing this question
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote