C++ Code to find numbers divisible by 7 using do..while loop

#include<iostream>
using namespace std;
int main ()
//C++ Program to find numbers divisible by 7 using do..while loop

{
    int z = 7;
    do
    {
        cout << "The number divisible by 7 is " << z << endl;
        z +=7;
    }
    while (z <= 1000);
    return 0;
}

Comments

Popular posts from this blog

CONCEPT OF INTELLIGENCE AS IT RELATE TO IFA DIVINATION

C++ Code that uses a do..while loop to compute and print the sum of the squares of a number obtained from the operator.

C++ Code that uses a while loop to compute and print the sum of the squares of a number obtained from the operator.