How do we write something to square these calculations

Result1 = Val3-Val1sqaured;
Result2 = Val3-Val2;

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.