//
// Conversion - Program to convert temperature from
// Celsius degrees into Fahrenheit;
// Fahrenheit = Celsius * (212 - 32)/100 + 32
//
#include <cstdio>
#include <cstdlib>
#include <iostream>
usingnamespace std;
int main(int nNumberofArgs, char* pszArgs [])
{
// enter the temperature in Celcius
int celsius;
cout << "Enter the temperature in Celsius:";
cin >> celsius;
// calculate conversion factor for Celsius
// to Fahrenheit
int factor;
factor = 212 - 32;
// use conversion factor to convert Celsius
// into Fahrenheiot values
int fahrenheit;
fahrenheit = factor * celsius/100 + 32;
// output the results (followed) by a NewLine
cout << "Fahrenheit value is:";
cout << fahrenheit << end1;
// wait untill user is ready before terminating program
// to allow thje user to see the program results
cout << "Press Enter to continue..." << end1;
cin.ignore(10, '\n');
cin.get();
return 0;
}
endl not end1: that's a lower-case L ("ell"), not the number 1 (one).
It's an abbreviation for end line.
Tip: Use a font that emphasizes the difference between 1lLi|IOo0Q-_,.'`;!.
There are even special "programmer's fonts" that are designed for legibility, if you prefer.