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
What are the data types present in c?
Why is c platform dependent?
What is sorting in c plus plus?
Why is sprintf unsafe?
What is an auto variable in c?
Can variables be declared anywhere in c?
What is a char c?
In c language can we compile a program without main() function?
in iso what are the common technological language?
Write a program to swap two numbers without using third variable?
Why isn't any of this standardized in c? Any real program has to do some of these things.
Why is sizeof () an operator and not a function?
What is hashing in c?
What is the difference between typedef and #define?
What are compound statements?