help me with this problem:
to develop a C++ program that generates three random numbers within the range of numbers specified by the user. The program will then determine the largest and the smallest numbers among those three numbers.:'(

Recommended Answers

Have a look here.

It's a really good reference about random number generation.

After the user sets the bounds of the random numbers, you could easily store the random numbers you …

Jump to Post

All 2 Replies

Have a look here.

It's a really good reference about random number generation.

After the user sets the bounds of the random numbers, you could easily store the random numbers you generate in an array using a for loop.

For finding the largest and smallest numbers, you could use another for loop with an if statement.

thanx for the sharing
im having trouble with c++ oftenly since im a beginner to c++
thanx once again..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.