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;
}
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
Post a Comment
Thanks for your comments.