Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10

Answer Posted / alish agrwal

#include<stdio.h>
#include<conio.h>
void main()
{ int i;
for(i=1;i<=10;i++)
printf("\n",i);
getch();
}

Is This Answer Correct ?    29 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many levels deep can include files be nested?

648


What is calloc()?

627


What is wrong with this initialization?

590


What is typedf?

666


Is c is a low level language?

561






Are there namespaces in c?

566


What does %2f mean in c?

674


What is static volatile in c?

574


What is const and volatile in c?

564


What are structural members?

568


What are types of preprocessor in c?

617


Where is c used?

646


What is C language ?

1526


What is NULL pointer?

673


What is an lvalue in c?

694