0

Well, please excuse my noobiness, and my little skill with C++, but give me a break, I'm young.

Not for homework, just for the sake of being able to do it,I was trying to make a code for the Pythagorean theorem, and here is the start of the code (of course not working or else I would't have made this thread) to find the basic a^2+b^2=c^2. Please tell me what I did wrong, and as I said, excuse my unfamiliarity to C++! Note: this is only a code snippet of whats important to the code.

```
int a;
int b;
int c;
float choice;
float choice1 = 1;
float choice2 = 2;
float choice3 = 3;
int a2 = a^2;
int b2 = b^2;
int c2 = c^2;
int awnser = a^2 || b^2 || c^2;
float pow();
float sqrt();
cout << "Enter a and b as 'a,b'\n";
cin >> a,b;
cout << a << '^' << 2 << '+' << b << '^' << 2 << '=' << c << '^' << 2,a2 && b2;
c2 = a2 + b2;
awnser = sqrt(c2);
cout << awnser;
```