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
How to declare a variable?
Is swift based on c?
How can I call a function with an argument list built up at run time?
What is a ternary operator in c?
What is the difference between printf and scanf in c?
What is a pointer value and address in c?
What is a structure in c language. how to initialise a structure in c?
What are dangling pointers in c?
What are the uses of a pointer?
Difference between goto, long jmp() and setjmp()?
What is structure padding in c?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What does #pragma once mean?
What are global variables?
Difference between exit() and _exit() function?