Answer Posted / nilaksh
#include<stdio.h>
#include<conio.h>
void main()
{
int i, n;
clrscr();
printf("\nHow many odd numbers?");
scanf("%d",&n);
for(i=1;i<=n*2;i++)
printf("\n %d",i);
getch();
}
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
What is the use of static variable in c?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Explain what is the advantage of a random access file?
How many header files are in c?
What are file streams?
Write a program of advanced Fibonacci series.
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
How does struct work in c?
What is double pointer in c?
What is a good data structure to use for storing lines of text?
Which of these functions is safer to use : fgets(), gets()? Why?
What is f'n in math?
Differentiate between Macro and ordinary definition.
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What are the advantages of c language?