View Single Post
Old Oct 2nd, 2004, 5:50 AM   #1
TecBrain
Hobbyist Programmer
 
Join Date: Sep 2004
Location: Cyprus
Posts: 147
Rep Power: 5 TecBrain is on a distinguished road
till i get my compiler, can some one check for any bugs,


a program that will accept a temperature in degrees celsius and output in fahrenheit.

#include <iostream.h>

int main()
{

float a,b;

cin >> a;

//calculation

b = (a*9.0/5.0) + 32;

cout << b;

return 0;

}

Thanks.
__________________
Personal Portfolio
TecBrain Support Forum
Linux VS Windows ... Dont Even Think of it ..
Distribution: Slackware
if (OS==Linux) return success
There are 10 kinds of people, those who can read binary numbers and those who can't.
TecBrain is offline   Reply With Quote