ctof - cout<< celsius<<" C ="<<...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// ctof.cpp / #include <iostream.h> # double celsius_to_fahrenheit(double celsius); d int main() { double fahrenheit; double celsius = 22.5; fahrenheit = celsius_to_fahrenheit(celsius);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout << celsius << " C = " << fahrenheit << " F\n"; return 0; } double celsius_to_fahrenheit(double celsius) { return(celsius * (9.0/5.0) + 32.0); }...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTER 12 taught by Professor Aymanboghdady during the Spring '11 term at American College of Computer & Information Sciences.

Ask a homework question - tutors are online