11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18 Part I: Introduction to C++ Programming}// enter the temperature in Celsiusint celsius;cout > celsius;// calculate conversion factor for Celsius// to Fahrenheitint factor;factor = 212 - 32;// use conversion factor to convert Celsius// into Fahrenheit valuesint fahrenheit;fahrenheit = factor * celsius/100 + 32;// output the results (followed by a NewLine)cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!