how to print this sereis 2 4 3 6 5..........?

Answers were Sorted based on User's Feedback



how to print this sereis 2 4 3 6 5..........?..

Answer / iamdluffy

something like

for(n=2;n<somenumber;n++)
{
print n;
print n*2;
n=n-1;
}

Is This Answer Correct ?    2 Yes 1 No

how to print this sereis 2 4 3 6 5..........?..

Answer / taz

2 3 5 is prime number & 4 after 2, 6 after 3...is two times
of previous number.

Is This Answer Correct ?    0 Yes 1 No

how to print this sereis 2 4 3 6 5..........?..

Answer / habeeb ahmed

10

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

write a program that uses point of sale system. which are mainly used by retail markets, where the is a database inventory list, a slip should be printed for the customer. manage should be able to access what has been sold and what is left from stock?

1 Answers  


Can we change the value of static variable in c?

0 Answers  


can a union be self-referenced?

1 Answers  


Write a program to implement queue.

0 Answers   Aricent,


How pointer is different from array?

0 Answers  






what is compiler

6 Answers  


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

0 Answers  


How can you find the day of the week given the date?

0 Answers  


How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets

2 Answers   Hexaware,


What is call by value in c?

0 Answers  


If I want to initialize the array like. int a[5] = {0}; then it gives me all element 0. but if i give int a[5] = {5}; then 5 0 0 0 0 is ans. what will I do for all element 5 5 5 5 5 in a single statement???

3 Answers   Amdocs, IBM,


What is the use of clrscr?

0 Answers  


Categories