Im trying to compile a program for a book
heres my code
Code:
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgz[])
{
int celsius;
cout <<"Enter The Temperture in Celcius:";
cin >> celsius;
int factor;
factor - 212 - 32;
int fahrenhiet;
fahrenhiet - factor * celsius/100 + 32;
cout <<"Fahrenhiet value is:";
cout << fahrenhiet << endl;
system("pause");
return 0;
}
It complies and opens fine but it dosen't work it seems that the math is wrong. If i type in 0 Celcius i get 4198592
HELP!!!!!!!!