- Convert Totalseconds To Kiloseconds Hectoseconds And Seconds Finding The Maximum Number Of Kiloseconds Then Hectosec 1 (35.62 KiB) Viewed 29 times
Convert totalSeconds to kiloseconds, hectoseconds, and seconds, finding the maximum number of kiloseconds, then hectosec
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Convert totalSeconds to kiloseconds, hectoseconds, and seconds, finding the maximum number of kiloseconds, then hectosec
Convert totalSeconds to kiloseconds, hectoseconds, and seconds, finding the maximum number of kiloseconds, then hectoseconds, then seconds. Ex: If the input is 4104, the output is Kiloseconds: 4 Hectoseconds: 1 Seconds: 4 Note: A kilosecond is 1000 seconds. A hectosecond is 100 seconds. #LTIC LUGE <Lustream> 2 using namespace std; 3 4 int main() { 5 int totalSeconds; 6 int numkiloseconds; 7 int numHectoseconds; 8 int numSeconds; 9 10 11 12 13 14 15 16 cin>> totalSeconds; Your code goes here */ cout << "Kiloseconds: " << numKiloseconds << endl; cout << "Hectoseconds: << numHectoseconds << endl; M cout << "Seconds: << numSeconds << endl; 2 3 DIDA