Write a C++ program to perform the following:
1) Input a positive integer total that represents the total distance in meters a person
needs to travel.
2) Input a positive integer first that represents the distance of the first jump. This
distance should be less than or equal to total/20. If first is greater than total/20
then set it to total/20.
3) Using a loop calculate how many jumps are needed to cover the total distance.
After every jump, the person jumps 1 meter more than the previous jump. See the
input and output for more examples.

OK, so write the program, and when you have a question, come back here and ask for some help.

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.