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


Please Help Members By Posting Answers For Below Questions

c language interview questions & answer

1455


Write a code to remove duplicates in a string.

623


What is the function of this pointer?

670


What is the use of define in c?

592


Why is c platform dependent?

617






How can I delete a file?

627


Where does the name "C" come from, anyway?

642


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1618


What is the most efficient way to count the number of bits which are set in an integer?

587


Can you apply link and association interchangeably?

670


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

739


How would you rename a function in C?

614


Is c is a low level language?

559


What is the collection of communication lines and routers called?

610


Can you please compare array with pointer?

614