Enhance your program from Exercise 14 by outputting the position of the
largest number and the largest number of the sequence a0, a1, a2, . . ., ak.
(For example, the largest number of the sequence 75, 226, 113, 340, 170,85, 256, 128, 64, 32, 16, 8, 4, 2, 1 is 340, and its position is 4.) Test your
program for the following values of x: 75, 111, 678, 732, 873, 2048, and
65535.
IRTIZA12
0
Newbie Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.