hello i have been trying to convert my temperature from fahrenheit to celcius and i am having troubles trying to figure out how to get it to convert. i got the fahrenheit to count but all my celcius does is just states itself as zero. can anyone help. here is my program thus far...
// //LAB 2: TEMPERATURE CONVERSIONS
//AUTHOR: COULTON GURNEY
//VERSION 1.0 //////////////////////////
//DATE: 02-14-12 // \t to make columns [s]//
// // [/s]//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
The decimal points after the numbers actually let the compiler know that a number is to be treated as a double. If you try to divide the integer 5 by 9, it's going to truncate to 0. 5.0, however...
EDIT: void main() is evil. Could you please change it to the standards-compliant int main()?
lol Thanks albatross. and my im just starting programming and that is how my book has started off its programs in the book. my teacher has already talked about it and he said we would be using int main() more often in the future.