fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.  
  7. int inches;
  8. inches = 100;
  9.  
  10. cout << inches << " inch(es) = ";
  11.  
  12. cout << inches / 12 << " feet (foot) and ";
  13.  
  14. cout << inches % 12 << " inch(es)" << endl;
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 4284KB
stdin
Standard input is empty
stdout
100 inch(es) = 8 feet (foot) and 4 inch(es)