MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main3

Function main3

Lab_05/Source2.cpp:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13int 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}

Callers

nothing calls this directly

Calls 1

converting1Function · 0.85

Tested by

no test coverage detected