Assignment_3

advertisement
‫المملكة العربية السعودية‬
‫وزارة التعليم العالي‬
‫جامعة المجمعة‬
‫كلية علوم الحاسب وتقنية المعلومات‬
Kingdom of Saudi Arabia
Ministry of Higher Education
Majmaah University
Computer Science and Information Technology College
Assignment due by Sun Nov 23 before 12:00 pm
Assignment 3

write a complete C++ program that include 2 functions:
-
function named Max that takes 2 float parameters , and returns the largest number.
-
function named Min that takes 2 float parameters , and returns the lowest number.
Note: in main function you should ask user to enter 2 numbers then use these two function to
determine largest and lowest values.
Example of the output
Enter 2 numbers:3.9 3.8
Largest number:3.9
Lowest number: 3.8
1
Download