a simple c program using 'for' loop to display the output
5
4
3
2
1
Answer Posted / rohit dilip kakade
#include<stdio.h>
#include<conio.h>
void main(void)
{
int i;
clrscr();
for(i=5;i>0;i--)
{
printf("
%d",i);
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to set file pointer to beginning c?
Write a program on swapping (100, 50)
Which is better pointer or array?
What is a nested formula?
Explain how can a program be made to print the line number where an error occurs?
What is main () in c language?
Why header files are used?
Can we change the value of #define in c?
What is the total generic pointer type?
What is calloc in c?
What is a protocol in c?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Write a program to print “hello world” without using semicolon?
What is the scope of an external variable in c?
difference between Low, Middle, High Level languages in c ?