Celsius to Fahrenheit C++

Posts 1–5 of 5 · Page 1 of 1
Celsius to Fahrenheit C++
I just want to share this if you to lazy to convert Ctemp to Ftemp exp.
i was on school and they said how to convert Celsius to Fahrenheit so i went home and think lol xDDD

Code:
// I use Visual Studio 2008
#include <iostream>
using namespace std;
int main() {
double ctemp; // Celsius temperature
double ftemp; // Fahrenheit temperature

// Get value of ctemp (Celsius temp).
cout << "Input a Celsius temp and press ENTER: ";
cin >> ctemp;

// Calculate ftemp (Fahrenheit temp) and output.
ftemp = (ctemp * 1.8) + 32;
cout << "Fahrenheit temp is: " << ftemp << endl;
return 0;
}
can u guys gave me a link for like a C++ question and quiz and stuff.

thanks
Leeched....
Quote Originally Posted by Dguard View Post
Leeched....
Come on!!!! i was reading this thing called ("Don't Fear, C++ is here") Well i got some information on it so yea i little bit a leech lol^_^

i am stuck studying!!!! nuuuuuuuuuuuuuuuuuuuuuuu can u be my teacher lol
But u should give credits. Did you?
Quote Originally Posted by crex View Post
But u should give credits. Did you?
yeah i forgot about thats if your in collage and you have a project and you went to the internet and get some information in the internet and you didn't put where did you get the information you will not pass ^_^

yeah Credit to ("Don't Fear, C++ is here") its a book
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?