Hey, this is slightly embarrassing.
I'm a complete newbie and most will probably laugh when you see my question or something, i'unno. Anyway, basically, I'm trying to learn C++ and I've just started today, learning about variables and some simple calculation stuff, so I decided to try making a simple program to see if I knew how to use what I learnt, so I tried this:
I'm not really sure about the return 0, I figured I just better put it there. The compiler says that in Line 10 (the cout one), expected primary expression before ";" token? I don't know :sCode:#include <iostream> using namespace std; int main() { int Adj = 10; float Opp = 12.662; float Hyp = Opp + Adj; cout << "The hypoteneuse is" << Hyp << ; return 0; }
If anyone can help, that'd be appreciated...