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