Untitled
Anonymous
plain_text
12/02/2022 3:38 PM
320 B
19
Indexable
#include <iostream>
using namespace std;
struct timee
{
int hours;
int min;
int sec;
};
int main()
{
timee da;
cin >> da.hours >> da.min >> da.sec;
cout <<"time 1 = " << da.hours * 3600 + da.min * 60 + da.sec << "c";
}Editor is loading...