You are on page 1of 1

#include<stdio.h> #include<math.

h> main(){ int i,k,l=0; float j; printf("Ingrese un numero: "); scanf("%i",&i); j=sqrt(i); for(k=1;k<=j;k++) { if(k==j) {printf("%i tiene raiz cuadrada perfecta\n",i); l=1; } } if(l==0) {printf("%i no tiene raiz cuadrada perfecta\n",i);} system("PAUSE"); }

You might also like