C++ Program to Print Series 1 -4 7 -10 . . . . -40: Read a series of integers and determine the following information about each integer:a. Is it a factor of 7 and 11 (divisible by the two numbers)?
C++ Program to Print Series 1 -4 7 -10 . . . . -40
#include <iostream>
using namespace std;
int main()
{
int i;
for(i=7;i<=67;i++)
{
cout << i;
i=i+1;
if(i<67)
cout << ",";
}
return 0;
}
Output Of Program
7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67