orlandoju

Ejer10

Mar 30th, 2022
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main(void){
  6.  
  7. int horas, dias;
  8. float horas_posterior;
  9.  
  10. cout<< "Ingrese la cantidad de horas: " ;
  11. cin>> horas;
  12. dias= horas/24;
  13. horas_posterior= horas%24;
  14. cout<< "Equivalen a "<<dias<<" dia/s y "<< horas_posterior << " hora/s" ;
  15. return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment