Write a program to find how many hours, minutes and seconds are in time duration given in seconds.

#include <iostream>

#include <iomanip>

using namespace std;

int main()

{

    float num,frac;

    int integer;

    cout<<"Enter the number:";

    cin>>num;

    integer=num;

    frac=num-integer;

    cout<<"The integer part of the number is:"<<integer<<endl;

    cout<<"The fractional part of the number is:"<<frac<<endl;

    return 0;

}