C program to check whether number is Perfect Square or not April 13, 2021 Given a Number is Perfect Square or Not/*C program to check number is perfect square or not.*/ #include <stdio.h>#include <math.h> int main(){ int num; int iVar; float fVar; printf("Enter an integer number: "); scanf("%d",&num); fVar=sqrt((double)num); iVar=fVar; if(iVar==fVar) printf("%d is a perfect square.",num); else printf("%d is not a perfect square.",num); return 0;}------------------------------------------------------------Output Tweet Share Share Share Share About Code2Chef Computer Hardware or Software does nothing without a computer program guiding. Related Post
ConversionConversion EmoticonEmoticon