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

Answer Posted / guest

#include<stdioh>
#include<conio.h>
void main()
{
int i;
for(i=0;i<=10;i++)
{
printf("%d",i);
}
}

Is This Answer Correct ?    8 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are extern variables in c?

545


What are the advantages of external class?

592


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2530


What is the advantage of a random access file?

639


Is c is a procedural language?

595






What are the types of data files?

729


What is function what are the types of function?

556


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4495


What are the three constants used in c?

544


Explain what header files do I need in order to define the standard library functions I use?

647


Explain how do you search data in a data file using random access method?

696


What happens if header file is included twice?

653


What is the best organizational structure?

642


write a program to find the given number is prime or not

3842


Why do we use int main instead of void main in c?

617