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

What is the difference between memcpy and memmove?

1084


what is stack , heap ,code segment,and data segment

2763


What is c programing language?

1132


Which programming language is best for getting job 2020?

1097


Is c high or low level?

1052


Write a program to generate random numbers in c?

1153


What is an identifier?

1085


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3371


Explain what’s a signal? Explain what do I use signals for?

1246


What is floating point constants?

1191


Calculate 1*2*3*____*n using recursive function??

2095


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1309


Explain how many levels deep can include files be nested?

1122


What are the functions to open and close file in c language?

1260


What are file streams?

1068