Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int s, h, m, ss;
- printf("Introduce el tiempo en segundos: ");
- scanf("%d", &s);
- h = s/3600;
- m = (s - h*3600)/60;
- ss = s - (h*3600 + m*60);
- printf("%d segundos son %d h:%d m: %d s", s, h, m, ss);
- }
Advertisement
Add Comment
Please, Sign In to add comment