#include <stdio.h>
#include <stdlib.h>
void main()
{
int n,i,p;
printf("enter the no: ");
scanf("%d",n);
for(i=0;i<n;i++)
{
p=i*i
if(p==n)
{
scanf("the square root of %d is %d",n,i);
}
}
}
its not working error at if(p==n)