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 is c basic?
Simplify the program segment if X = B then C ← true else C ← false
Sir i need notes for structure,functions,pointers in c language can you help me please
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is bubble sort in c?
What is #include cctype?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
The __________ attribute is used to announce variables based on definitions of columns in a table?
Can we access array using pointer in c language?
When was c language developed?
How many types of arrays are there in c?
What is openmp in c?
What is pivot in c?
Is there a way to compare two structure variables?
Why c is called a mid level programming language?