Code:
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a,b,c;
printf("\nEnter the number:");
scanf("%d",&a);
b=sqrt(a);
c=b*b;
if(c==a)
printf("\n%d is a perfect square.",a);
else
printf("\n%d is not a perfect square.",a);
getch();
}
What is the result for this
ReplyDeleteOutput
ReplyDelete