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
Wt are the Buses in C Language
Why is c so popular?
what is stack , heap ,code segment,and data segment
Why n++ execute faster than n+1 ?
What is typedef?
When should a type cast not be used?
How can I prevent another program from modifying part of a file that I am modifying?
Explain continue keyword in c
Difference between pass by reference and pass by value?
How do we declare variables in c?
What are the different types of C instructions?
What is the size of enum in c?
What is a method in c?
Describe the difference between = and == symbols in c programming?
How old is c programming language?