write a program that prompts the user for an integer value for a length of a youtube clip in seconds then display the number of hours minutes seconds
for example your youtube clip is 7350 seconds length you would display
youtube clip 2 hours 2 minutes and 30 seconds
thank you
1
Expert's answer
2013-02-07T07:50:48-0500
#include <iostream> #include <cmath> using namespace std;
int main() { cout << "please enter time(sec)" << endl; & int time; & cin>>time; & int h1,hour,m1,minute; & h1 =time%3600; & hour=(time-h1)/3600;
Comments
Leave a comment