a simple c program using 'for' loop to display the output
5
4
3
2
1
Answers were Sorted based on User's Feedback
Answer / prayashjeet chanda
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int num,i;
printf("\nEnter a number: ");
scanf("%d",&num);
for(i=num;i>0;i--)
{
printf("\n%d",i);
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
Find greatest of two numbers using macro
What is a floating point in c?
what is diff b/w huge & far & near pointer??
Hai what is the different types of versions and their differences
What is formal argument?
why r u join this company? give solid resons.
16 Answers IBM, Infosys, TCS,
Explain that why C is procedural?
Describe the difference between = and == symbols in c programming?
What is sizeof in c?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
How can you find the exact size of a data type in c?
write a programme that inputs a number by user and gives its multiplication table.