-
March 31st, 2009, 01:03 AM
#1
Pythagorean Theorum Code Help
I made this code to find pythagorean theorums...
But it won't work right..
any help?
Code:
#include <iostream>
#include <string>
using namespace std;
int main ()
{
int a,b,c,d,e;
d = a * a+ b* b;
d = c * c;
cout << "Welcome to the LZ Pythagorean Theorem Finder" << endl << "To use this application, enter the values of variable A and B" << endl;
cout << "A = ";
cin >> a;
cout << "B = ";
cin >> b;
cout << "C = " << c << endl;
return 0;
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|