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
Is c language still used?
What does p mean in physics?
Explain what is the difference between a string and an array?
What is the difference between a free-standing and a hosted environment?
How important is structure in life?
What is void pointers in c?
What is storage class?
What are loops in c?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What are qualifiers?
Do you know the use of 'auto' keyword?
What is a rvalue?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What are two dimensional arrays alternatively called as?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.