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

What is the difference between local variable and global variable in c?

677


What's the total generic pointer type?

604


What does the && operator do in a program code?

686


Why do we use & in c?

580


What does it mean when the linker says that _end is undefined?

621






How many keywords (reserve words) are in c?

603


Explain what is the difference between functions getch() and getche()?

595


Do you know the use of 'auto' keyword?

648


Tell me with an example the self-referential structure?

558


What does int main () mean?

537


What is array of structure in c programming?

743


Is javascript written in c?

569


What is the purpose of the preprocessor directive error?

669


In which layer of the network datastructure format change is done

1421


Why are all header files not declared in every c program?

592