0
#include <iostream> 

int main() {
    float myNum = 60/(60*60); 
    std::cout << myNum; 
    return 0; 
} 

The code above gives an an output of 0 instead of the expected 0.016666667 which you get from a regular calculator.

Sam Mason
  • 12,674
  • 1
  • 33
  • 48
vinshield
  • 9
  • 5

0 Answers0