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

how to find greatet of 10 numbers without using array?

Answer Posted / c.p.senthil

int main()
{
int i, num;
int greatest=0;

for(i=0; i<10; i++)
{
scanf("%d", &num);
if(num > greatest)
greatest = num;
}
printf("greatest = %d", greatest);
return 0;
}

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain what is a newline escape sequence?

1049


Array is an lvalue or not?

1082


Write a program to find the biggest number of three numbers in c?

1022


what is uses of .net

1695


Where are some collections of useful code fragments and examples?

1120


What is modeling?

1007


What would be an example of a structure analogous to structure c?

956


What does 1f stand for?

1103


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

1072


How to Throw some light on the splay trees?

1020


What is a class c rental property?

1061


How can you access memory located at a certain address?

1073


What are preprocessor directives in c?

1057


Dont ansi function prototypes render lint obsolete?

1083


Is this program statement valid? INT = 10.50;

1101