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

Be a part of the DaniWeb community

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