#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.
#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.