avatar
Untitled

Guest 12 4th Nov, 2019

MARKUP 0.42 KB
                                           
                         #include<iostream>
using namespace std;
int main(){
 int a,b,c,d,e,f,g,h,i;
 cin>>a>>b>>c;
 cin>>d>>e>>f;
 if (f-c<0){
    e=e-1;
    f=f+60;}
    if (e-b<0){
    d=d-1;
    e=e+60;}
 g=f-c;
 h=e-b;
 i=d-a;
 if (i<10)
    cout<<i<<":";
cout <<h<<":";
if (g<10){
    cout<<0;}
    cout<<g;

}
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes