Write a C++ program that reads 3 integer values from the user and prints them sorted in increasing (nondecreasing) order
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a C++ program that reads 3 integer values from the user and prints them sorted in increasing (nondecreasing) order
Write a C++ program that reads 3 integer values from the userand prints them sorted in increasing (nondecreasing) order. Theprogram must read the numbers in main functions and sent them byreference to a function named sortingMethod thatreceives 3 integer numbers by reference and sorts the comingnumbers in increasing order. That is, the sorting process must bedone within a function that you are expected to implement which hasthree integer parameters (by reference.)