Write a program which takes input Hours, Minutes, Seconds as integer and Calculates the total number of seconds. Test Case 1 Input (stdin) 10 50 10 Expected Output Seconds=39010 Test Case 2 Input (stdin) 20 30 20 Expected Output Seconds=73820
#include <iostream>
using namespace std;
int main()
{
int h,m,s1,s2,s3,seconds;
cin>>h>>m>>s3;
s1=h*60*60;
s2=m*60;
seconds=s1+s2+s3;
cout<<"Seconds="<<seconds;
return 0;
}