Others Maths Puzzle Programming Program

4,6,12,18,30,42,60,72,102,108,...
Print next 3 number through c programming.

Read Solution (Total 2)

Others Other Question

Print the next 3 number of the given pattern series:
4,6,12,18,30,42,60,72,102,108,...
What is the output of the program

void main()
{
int i,j,k;
i=2;
j=4;
k=i++>j&2;
printf("%d\n",k);
if(++k && ++i<--j|| i++)
{
j=++k;
}
printf(" %d %d %d",i,-j--,k);
getch();
}
Option
A. 4,-3,2
B. 5,-3,2
C. 4,-2,2
D. 5,-2,2