Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Write a program which returns the first non repetitive character in the string?

1054


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1383


What are void pointers in c?

966


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1801


Why is event driven programming or procedural programming, better within specific scenario?

2366


Why is void main used?

1035


what are the facialities provided by you after the selection of the student.

2177


what is the function of pragma directive in c?

1061


Write a program to swap two numbers without using the third variable?

1016


What is a void pointer in c?

1040


What are the types of pointers?

1033


What do you understand by normalization of pointers?

1005


explain what are actual arguments?

1032


How can I do peek and poke in c?

1038


What is use of integral promotions in c?

1074