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
Why doesnt long int work?
What are the difference between a free-standing and a hosted environment?
What is memory leak in c?
If I have a char * variable pointing to the name of a function ..
Is swift based on c?
can we implement multi-threads in c.
How can I list all of the predefined identifiers?
Can variables be declared anywhere in c?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Can a variable be both static and volatile in c?
Explain the difference between malloc() and calloc() in c?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What are structure types in C?
code for replace tabs with equivalent number of blanks
Explain how do you list files in a directory?