|
-
September 30th, 2011, 01:46 PM
#1
C++ hailstone sequence problem
Write a program which:
requests as input from the user two positive integers s and e, such that s < e.
outputs (i) the integer n belonging to [s,e] that generates the longest Hailstone sequence Sn, and (ii) the length of this longest Sn
i have no idea about how to use functions to implement this task...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|