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;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment