Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answer Posted / munna
#include<stdio.h>
#include<conio.h>
void main()
{
int i=0;
for(i=0;i<=10;i++)
{
printf("the required numbers are:%d",i);
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
Explain what is the best way to comment out a section of code that contains comments?
Explain what is a pragma?
Does c have enums?
What is the difference between scanf and fscanf?
Explain what is the benefit of using #define to declare a constant?
What is #include conio h?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is the purpose of & in scanf?
Why does not c have an exponentiation operator?
What is a structure in c language. how to initialise a structure in c?
What is function pointer c?
Explain what are the standard predefined macros?
How do you print an address?
explain what are actual arguments?
What is the best way to store flag values in a program?