ramontricolor12

LISTA 02 - exercício 36

May 23rd, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int horas, minutos, segundos;
  6.  
  7.     printf("Informe as horas, minutos e segundos: ");
  8.     scanf("%d %d %d", &horas, &minutos, &segundos);
  9.  
  10.     if(minutos >= 60 || segundos >= 60)
  11.     {
  12.         printf("\nHora Invalida!!\n\n\n");
  13.     }
  14.     else
  15.         printf("\nHora certa!!!\n\n\n");
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment