#include<stdio.h>
int main( void ) {
int n;
printf ( "Quantas vezes o programa deve ser executado:" ) ; for ( int i = 1 ; i <= n; i++ ) {
int d1;
int d2;
int h1;
int h2;
int m1;
printf ( "Numero de minutos 1:" ) ; int m2;
printf ( "Numero de minutos 2:" ) ; int dias = d1 + d2;
int horas = h1 + h2;
int minutos = m1 + m2;
horas += minutos / 60 ;
minutos %= 60 ;
dias += horas / 24 ;
horas %= 24 ;
printf ( "%2u Dias %2u Horas %2u Minutos mais\n " , d1
, h1
, m1
) ; printf ( "%2u Dias %2u Horas %2u Minutos\n " , d2
, h2
, m2
) ; printf ( "eh igual a %2u Dias %2u Horas %2u Minutos\n \n " , dias
, horas
, minutos
) ; }
return 0 ;
}
I2luY2x1ZGU8c3RkaW8uaD4KaW50IG1haW4odm9pZCkgewoJaW50IG47CglwcmludGYoIlF1YW50YXMgdmV6ZXMgbyBwcm9ncmFtYSBkZXZlIHNlciBleGVjdXRhZG86Iik7CglzY2FuZigiJWQiLCAmbik7Cglmb3IgKGludCBpID0gMTsgaSA8PSBuOyBpKyspIHsKCQlpbnQgZDE7CgkJcHJpbnRmKCJOdW1lcm8gZGUgZGlhcyAxOiIpOwoJCXNjYW5mKCIlZCIsICZkMSk7CgkJaW50IGQyOwoJCXByaW50ZigiTnVtZXJvIGRlIGRpYXMgMjoiKTsKCQlzY2FuZigiJWQiLCAmZDIpOwoJCWludCBoMTsKCQlwcmludGYoIk51bWVybyBkZSBob3JhcyAxOiIpOwoJCXNjYW5mKCIlZCIsICZoMSk7CgkJaW50IGgyOwoJCXByaW50ZigiTnVtZXJvIGRlIGhvcmFzIDI6Iik7CgkJc2NhbmYoIiVkIiwgJmgyKTsKCQlpbnQgbTE7CgkJcHJpbnRmKCJOdW1lcm8gZGUgbWludXRvcyAxOiIpOwoJCXNjYW5mKCIlZCIsICZtMSk7CgkJaW50IG0yOwoJCXByaW50ZigiTnVtZXJvIGRlIG1pbnV0b3MgMjoiKTsKCQlzY2FuZigiJWQiLCAmbT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