answersLogoWhite

0


Best Answer

The following algorithm works for any number of integers: Assume the first number is the maximum - maximum = (first number). Compare your assumed maximum with the second number. If the second number is larger than the assumed maximum, replace the old assumed maximum with the second number. Repeat for the third number, for the fourth, etc. - always copying the nth. element to the assumed maximum if you find one that is larger than your previous maximum.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an algorithm to find the largest number in a group of three integer numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

The largest integer that is not the product of two or more different primes?

The largest integer that is not the product of two or more different primes would be the largest prime number. Because there are an infinite number of prime numbers, there is no largest integer that is not the product of two or more different primes.


What is the largest integer prime number?

As of January 2017 , the largest known prime number is 2^74,207,281 − 1, a number with 22,338,618 digits.


How can i find an algorithm to determine the largest number?

1,000000000000,00000000000000,00000000,000000000000,00000000000,00000000000,00000,0000000000,000000,actually, there is no such thing as 'the largest number'.


What real number is both integer and a natural number?

Real numbers consist of all numbers except complex numbers. Every integer is a natural number but every rational number is not a natural number as well as an integer. So, the answer to the question is integer.


Is a decimal number an integer?

A decimal number is not an integer. An integer is a number that is not a fraction, and decimal numbers are decimal fractions.


Is 63.46 an integer?

Integer are whole numbers. As 63.46 is not a whole number, it is not an integer.


What is the largest integer number?

There is no such thing as the "largest" integer. Whatever integer you name, no matter how big it is, I can always add ' 1 ' to it ... or any other integer ... and get as many more as I want, that are all larger than your number.


What number is a rational number but not an integer?

Rational numbers are numbers that can be written as a fraction. Irrational Numbers cannot be expressed as a fraction. Any number that is a fraction is not an integer, but rational.


Is integer another word for number?

No. An integer is a kind of number - a whole number - but not all numbers are integers. For example, a half is a number but it is not an integer.


Which is largest positive integer?

It will be the largest positive whole number on the number line which is infinite.


Is 0.35 an integer?

No because integers are whole numbers


What is an integer that is not a real number?

There is no integer which is not a real number.