C++ Code to find numbers divisible by 7 using for loop

#include <iostream>
using namespace std;
int main()
// C++ program to find numbers divisible by 7 using for loop
{
    for (int z = 7; z <= 1000; z += 7)
    {
        cout << "The number divisible by 7 is " << z << endl;
    }
    system("pause");
    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.