Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (void) {
- //PERGUNTA PARA O USUARIO
- int horasDesejadas = 0;
- printf("Quantas horas voce quer saber? ");
- scanf("%d", &horasDesejadas);
- //ORGANIZANDO
- printf("\n\n");
- //EXIBIR HORA
- unsigned long minutos = 60;
- int horas = 1;
- for (; horas <= horasDesejadas; horas++) {
- horas == horasDesejadas ? printf("\nChegamos onde voce pediu\n"):printf("\nIremos continuar...\n");
- printf("%u minuto(s):%02d hora(s)\n", minutos, horas);
- minutos+=60;
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment