Advertisement
Guest User

Hours and Minutes.cxx

a guest
Sep 20th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6.  
  7. {
  8.     int m, h, m2;
  9.    
  10.     cout<<"Enter Minutes: ";
  11.    
  12.     cin>>m;
  13.    
  14.     h=m/60;
  15.    
  16.     m2=m%60;
  17.    
  18.     cout<<m<<" Minutes is Equal to "<<h<<" Hours and "<<m2<<" Minutes.";
  19.    
  20.     cout<<endl;
  21.    
  22.     return 0;
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement