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
What is the mean of function?
What is wrong with this code?
Explain how can I convert a number to a string?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Can we use visual studio for c?
How can I remove the leading spaces from a string?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is volatile, register definition in C
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
how can use subset in c program and give more example
How is = symbol different from == symbol in c programming?
Stimulate calculator using Switch-case-default statement for two numbers
What is a union?
What are header files? What are their uses?
What are conditional operators in C?