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
Explain what is the concatenation operator?
Explain two-dimensional array.
Tell me when is a void pointer used?
Why array is used in c?
What is modifier & how many types of modifiers available in c?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What is atoi and atof in c?
Who developed c language and when?
find out largest elemant of diagonalmatrix
How is pointer initialized in c?
When a c file is executed there are many files that are automatically opened what are they files?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What is the size of a union variable?
Explain what is the difference between functions getch() and getche()?