Create a program using the while statement that displays the numbers 0
through 117, in increments of 9.
#include <iostream>
int main(){
using namespace std;
int n = 0;
while( n <= 117){
cout << "0" << endl;
n+=9;
}
cin>>n;
return 0;
}
Comments
Leave a comment