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
Write a program to reverse a given number in c?
What is the argument of a function in c?
Why are algorithms important in c program?
Do character constants represent numerical values?
What is an arrays?
What is static function in c?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What are the uses of a pointer?
What is c language used for?
Is void a keyword in c?
How can this be legal c?
using only #include
What is a const pointer?
What is the difference between text and binary i/o?
Why doesnt long int work?