For each problem:
Use the same procedure as in previous assignments.
#include<climits> is needed for this problem.
Initialize a variabled named smallest with the constant
INT_MAX, which is given in the climits library.
Ask the user to enter a series of positive integers and stop with a
negative integer.
Print the smallest positive integer entered, or print "no input" if
no positive integers were entered.
Test three times with the following sequences:
65 21 12 99
no positive integers
99 155 42 105
Write a while loop to require the user to enter two integers; the second integer must be equal to, or larger than, the first integer. Both integers must be at least 1 and not larger than 20. If they do not enter correct integers, give them error messages and make them do it again until they are correct.
After the acceptable integers have been entered, use a for loop to print a table of integers and their square roots for all integers from the first integer specified by the user to the second integer specified by the user, inclusive. Align the table and print 4 decimal positions
A sample table follows, for integers 7 to 9:
INTEGER SQUARE ROOT 7 2.6458 8 2.8284 9 3.0000
Test the program twice:
First test, first enter: first integer = 2, second integer = 0
and after that is rejected: first integer = 2, second integer = 4
Second test, first enter: first integer = 21, second integer = 5
and after that is rejected: first integer = 5, second integer = 5