write a program for odd numbers?

Answer Posted / chintu gandhi

main()
{
int i,n;
clrscr();
printf("\nenter range up to which u want to print");
scanf("%d",&n);
for(i=1;i<n;i=i+2)
{
printf("\n%d",i);
}
getch();
}

Is This Answer Correct ?    75 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me about low level programming languages.

656


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2319


Explain modulus operator. What are the restrictions of a modulus operator?

614


What are the parts of c program?

654


Which node is more powerful and can handle local information processing or graphics processing?

852






how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1390


Is it valid to address one element beyond the end of an array?

699


What is null pointer constant?

611


What is function prototype in c language?

633


Explain about C function prototype?

626


Explain what is the difference between a free-standing and a hosted environment?

652


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2741


What are the different properties of variable number of arguments?

675


What is time complexity c?

584


What is the use of getchar() function?

646