booyaboy234
Newcomer
- Joined
- Aug 7, 2008
- Sythe Gold
- 0
- Messages
- 8
I'm trying to write a program in dev c++ that squares numbers buit i cant find out what is going wrong when i try to compile it. I was hoping someone here could.
Code:
//
// program to convert integers to there squares
//
#include <cstdio>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
//enter numbr to be squared
int number;
cout << "enter number to be squared:";
cin >> number;
// use conversion factor to convert numeral
// into square
int integer;
square = number * number;
// output results (followed by a NewLine)
cout << "squared value is:";
cout << square << end];
// wait until user is ready to terminater program
// to allow user to view results
system("PAUSE");
return 0;
}

















