Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  How to square a number
Language: PASCAL
Code:
PROGRAM numSquared;

Var
userNum,Result:Integer;

BEGIN
Writeln('Enter an integer to be squared');
Readln (userNum);
Result= userNum*userNum;
Writeln(result);          
Readln;
End.
          
          
Comments: