Question #280234

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

through 117, in increments of 9.


Expert's answer

#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!

LATEST TUTORIALS
APPROVED BY CLIENTS