Hello all, this is my first post. My problem is with division and/or the way i am declaring variables. here's my code:
#include <iostream.h>
int main () {
int minutes;
float hours;
float minutes_late;
cout << "How many minutes late are you? " ;
cin >> minutes;
hours = minutes / 60;
minutes_late = hours / 60;
cout << "You are " << hours << " hour(s) " << minutes_late << " minutes late " << endl;
basically, when i try to insert a number for minutes, such as 73.5, it will say 1 hour and 13 minutes late, leaving off the .5 .....thank you for all your help