| 11 | } |
| 12 | |
| 13 | int main3() |
| 14 | { |
| 15 | double hours, minutes, seconds; |
| 16 | cout << "Hours: "; |
| 17 | cin >> hours; // Prompting user for data and |
| 18 | cout << "Minutes: "; // reading 3 numbers for user |
| 19 | cin >> minutes; //! |
| 20 | cout << "Seconds: "; |
| 21 | cin >> seconds; |
| 22 | if (hours >= 0 && minutes >= 0 && seconds >= 0) // the program will be executed when all numbers are positive |
| 23 | cout << "The time in minutes is " << converting1(hours, minutes, seconds) << endl; |
| 24 | else // calling function to calculate the main function |
| 25 | cout << "Invalid inputs!" << endl; |
| 26 | return 0; // indicates that the program will ended successfully |
| 27 | } |
nothing calls this directly
no test coverage detected