Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(void){
- int horas, dias;
- float horas_posterior;
- cout<< "Ingrese la cantidad de horas: " ;
- cin>> horas;
- dias= horas/24;
- horas_posterior= horas%24;
- cout<< "Equivalen a "<<dias<<" dia/s y "<< horas_posterior << " hora/s" ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment