Computer Science, asked by sarasen446, 9 months ago

QBASIC
Write a program to input a program and check either the number is perfect square or not

Answers

Answered by karan7303132
1

Answer:

C program to check whether number is Perfect Square or not

Input a number 16.

Store it's square root in a float variable fVar=4.000.

Assign fVar into iVar (an integer variable) iVar=fVar, it means iVar will contain 4.

Now compare iVar and fVar value will be equal.

If number does not a perfect square, iVar and fVar will not same.

Explanation:

Similar questions