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 is a scope resolution operator in c?
What is dynamic memory allocation?
How do I convert a string to all upper or lower case?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
How can I sort a linked list?
What is a structural principle?
application attempts to perform an operation?
Why do we use pointer to pointer in c?
Explain the use of #pragma exit?
C language questions for civil engineering
What is wrong with this initialization?
What is actual argument?
What is meant by gets in c?
Why header file is used in c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?