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 |
fn f(x) { if(x<=0) return; else f(x-1)+x; }
write a programe to find the factorial of given number using recursion
how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *
what does ‘segmentation violation’ mean?
if a person is buying coconuts of Rs10,and then sell that coconuts of Rs9,with the loss of one rupee.After that the person became a millaniore.how?
Is it possible to have a function as a parameter in another function?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
How would you obtain the current time and difference between two times?
write a program that accepts 3 numbers from the user. dispaly the values in a descending order.
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
What is a const pointer, and how does it differ from a pointer to a const?
what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string