To check whether the given number is perfect square or not. (Qbasic Code)

To check whether the given number is perfect square or not. (Qbasic Code)
  •  CLS
    INPUT "Enter any number"; n
    r = SQR(n)
    IF r = INT(r) THEN
        PRINT "The given number is perfect square";
    ELSE
        PRINT "The given number is not perfect square";
    END IF
    END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.