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


Please Help Members By Posting Answers For Below Questions

Wt are the Buses in C Language

2753


Why is c so popular?

654


what is stack , heap ,code segment,and data segment

2226


Why n++ execute faster than n+1 ?

1853


What is typedef?

681






When should a type cast not be used?

627


How can I prevent another program from modifying part of a file that I am modifying?

618


Explain continue keyword in c

590


Difference between pass by reference and pass by value?

660


How do we declare variables in c?

578


What are the different types of C instructions?

681


What is the size of enum in c?

625


What is a method in c?

630


Describe the difference between = and == symbols in c programming?

780


How old is c programming language?

583