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)
-
- #include
int main() {
int count=0;
int j;
int limit=15; //change how many no. you want to print
int prime(int n)
{
int flag=0;
int i;
if(n - 7 years agoHelpfull: Yes(6) No(3)
- It's the list of numbers k such that k-1 and k+1 are both prime. The next three numbers in the series are 138, 150 and 180.
- 10 years agoHelpfull: Yes(1) No(8)
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