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 / afreen chitragar

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 ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a sequential access file?

1125


What is the difference between c and python?

1126


Why malloc is faster than calloc?

1026


What is difference between class and structure?

1083


What is a structure member in c?

970


What is getch() function?

1027


What is the difference between exit() and _exit() function in c?

1038


What is the use of printf() and scanf() functions?

1091


What is difference between function overloading and operator overloading?

1063


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2165


How many keywords (reserve words) are in c?

1105


What does the format %10.2 mean when included in a printf statement?

1611


What is the difference between malloc() and calloc()?

1740


What is a char in c?

948


How can I read and write comma-delimited text?

1030