// A program that prints all number
between 1 and N that are divisible by 7
#include <iostream>
using namespace std;
int main()
{
int
last_number;
cout<<"Please enter
the number to which you want to print the multiples of 7"<<endl;
cin>>last_number;
for (int
counter=1;counter<=last_number;counter++){
if ((counter%7)==0)
cout<<counter<<endl;
}
return 0;
}
Regarding all aspects the blog was perfectly nice.
ReplyDeletec++ programming