- Write a program that determines whether or not Anna and Bob were at the restaurant at the same time. Ask the user when Anna and Bob arrived at and left the restaurant, respectively. (The user should answer in number of minutes after midnight, and assume that both arrived and left on the same day.) Determine whether or not Anna and Bob were at the restaurant at the same time, and if so, for how many minutes they overlapped. For example, if Anna arrived at 720 minutes after midnight and left 800 minutes after midnight and Bob arrived at 600 minutes after midnight and left 740 minutes after midnight, they were at the restaurant together for 20 minutes. (Note: If Bob leaves at the same time Anna arrives, then they were not at the restaurant at the same time.)
vendredi 29 octobre 2021
Using C language [closed]
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire