As well as removing the extra ", you'll need to put brackets around the calculation ie
Code:System.out.println("The equation is: "+(a.b^2 + b.x+c));
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 11 of 11
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |