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...

write a program to display numbers from 1 to 10 and 10 to 1?

Answer Posted / sureshmca

#include<stdio.h>
void main()
{
int num,i;
for(num=0;num<=10;num++)
{
printf("%d",num);
}
}

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

2066


What is a char c?

1043


What is this infamous null pointer, anyway?

1061


Why is c so popular?

1165


How many bytes are occupied by near, far and huge pointers (dos)?

1160


Is boolean a datatype in c?

1070


Can we change the value of constant variable in c?

1063


How is = symbol different from == symbol in c programming?

1050


What is restrict keyword in c?

1116


Differentiate between #include<...> and #include '...'

1066


what do you mean by inline function in C?

1058


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

1037


What are the types of macro formats?

1125


What is the right type to use for boolean values in c?

1041


What is .obj file in c?

1087