Answer to Question #280234 in C++ for Aye

Question #280234

Create a program using the while statement that displays the numbers 0

through 117, in increments of 9.


1
Expert's answer
2021-12-16T08:10:07-0500
#include <iostream>
int main(){
    using namespace std;
    int n = 0;
    while( n <= 117){
        cout << "0" << endl;
        n+=9;
    }
	cin>>n;
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog