Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answer Posted / nazar hussain khan
#include"stdio.h"
#include"conio.h"
void main(void)
{
clrscr();
int a,
for(i=1;i<=10;i++)
{
printf("%d",i);
}
printf("\n");
getch();
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the explanation for cyclic nature of data types in c?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Explain what are the different data types in c?
Explain main function in c?
What is typedef struct in c?
What is the right type to use for boolean values in c?
List some of the static data structures in C?
what do you mean by enumeration constant?
What is c basic?
What is %d used for?
How do you initialize pointer variables?
What does the c preprocessor do?
hi send me sample aptitude papers of cts?
What is the use of a semicolon (;) at the end of every program statement?
why do some people write if(0 == x) instead of if(x == 0)?