- #1
JamesU
Gold Member
- 821
- 3
I'm writing a simple program that'll give a squared value of z, a number
my editor is telling me that it's wrong :|
and how would I make a program that can find a square root?
Code:
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
double z;
cout<<"enter an integer"<<
cin>>z;>>
cout<<"The squared value of your integer is:"<<z*z<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
my editor is telling me that it's wrong :|
and how would I make a program that can find a square root?