Pythagoras

Hello everyone,
I am 14 years old and very new to c++, though i had previous programming experience. I've been working on a simple Pythagoras program and am stumped on 2 things. I have 5
error codes which are:
error C2143: syntax error : missing ';' before '>>' and '<<' on lines 7,8,9,10, and 14.

I also have another problem on line 8 which is,
warning C4551: function call missing argument list

Any help will be appreciated.
Thank you for your time.


#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int A,B,C;
cin << A;
cin << B;
A=A*A
B=B*B
C=sqrt(A+B)
cout>>C<<;
system ("pause");
return 0;
}
Last edited on
All these statements

cout<<"Side 1=";>>
cin<<A;endl;<<
cout>>"Side 2=";>>
cin<< B;<<

are invalid.
Moreover here you are using Cout instead of cout

Cout>>"The Hypotenuse=",C;>>
Thank you very much!
Topic archived. No new replies allowed.