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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you use the functions fseek(), freed(), fwrite() and ftell()?

707


Is there any possibility to create customized header file with c programming language?

627


p*=(++q)++*--p when p=q=1 while(q<=6)

1269


What is keyword in c?

605


When should a type cast be used?

576






What is .obj file in c?

649


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

701


What are 'near' and 'far' pointers?

621


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

1579


What is c language in simple words?

596


What is the difference between the = symbol and == symbol?

630


Between macros and functions,which is better to use and why?

1571


Explain enumerated types.

600


Explain what is a pragma?

595


What are the different types of pointers used in c language?

613