How do you write a set of 4 numbers in the reverse
How will you write a set of 4 numbers in ascending or descending order?
How do you find out how many occurrences of a number you have had in a list?
As you may immediately realize, now you have to remember all the numbers in order to be able to write them in a specific order.
2) Suppose your were asked to write a C++ program to read 4 integer values from the keyboard then find the largest (max) and to display the list of all numbers on one column and their difference with the max on the second column.
Here is an example:
Input: 3 4 5 8
Max = 8
How would you do this?
3. Suppose I tell you today that you can declare 4 integers x, x,
x, and x using:
The above statement will create x, x, x,
and x. Use these instead of a,b,c, and d (or any other variables
that you have used in problem 2) to solve the problem.
3. Take a guess, how do we define a set
of 10 characters using the same method?