Write a qbasic program to display perfect square number or not.

Write a qbasic program to display perfect square number or not.

Ans:

CLS
INPUT "Enter a number ";n
A=n^0.5
IF A=INT(A) THEN
       PRINT "It is perfect square number"
ELSE
       PRINT "It is not perfect square number"
END IF
END