From aa0069c70a989aee3b6ca5632ec9105344aa9216 Mon Sep 17 00:00:00 2001 From: Alexandre P Francisco Date: Tue, 11 Mar 2014 18:55:34 +0000 Subject: [PATCH] Adding ex5 --- aula02/ex5.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 aula02/ex5.c diff --git a/aula02/ex5.c b/aula02/ex5.c new file mode 100644 index 0000000..425a13d --- /dev/null +++ b/aula02/ex5.c @@ -0,0 +1,15 @@ +#include + +#define TUNITS 60 + +int main() { + int time; + + scanf("%d", &time); + printf("%02d:%02d:%02d\n", + time/(TUNITS*TUNITS), + (time/TUNITS)%TUNITS, + time%TUNITS); + + return 0; +} -- 2.30.2