a simple c program using 'for' loop to display the output
5
4
3
2
1
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between exit() and _exit() function?
What is a structure in c language. how to initialise a structure in c?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
using for loop sum 2 number of any 4 digit number in c language
please give me some tips for the placement in the TCS.
What is the difference between functions getch() and getche()?
what is the function of pragma directive in c?
What is difference between Structure and Unions?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What is the difference between break and continue?
What is volatile c?
Is r written in c?
What is .obj file in c?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.