954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Java sqaure

How do we write something to square these calculations


[

ICODE]Result1 = Val3-Val1sqaured;
Result2 = Val3-Val2[/ICODE]


i need to square these calculation how would i do it so it meant to look like

Result1= Val3-Val1sqaured;

i cant get the squared bit

thank you

furqanishaq
Newbie Poster
14 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

To square a number just multiply it by itself - eg 5 squared is 5*5

JamesCherrill
Posting Genius
Moderator
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You