Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answer Posted / sagarraje nimbalkar
// using If else
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;
while(i<=10)
{
printf("\n%d",i);
i++;
}
}
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
What are data structures in c and how to use them?
How many bytes are occupied by near, far and huge pointers (dos)?
Explain how can I write functions that take a variable number of arguments?
what are non standard function in c
How #define works?
How do I create a directory? How do I remove a directory (and its contents)?
Where static variables are stored in memory in c?
Is this program statement valid? INT = 10.50;
Do character constants represent numerical values?
how can use subset in c program and give more example
What is the difference between malloc() and calloc()?
Combinations of fibanocci prime series
What is a buffer in c?
Write a program which returns the first non repetitive character in the string?
What is calloc()?