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

int main() {
    int Raiz_Cuadrada;
    double x;
    
    printf("Ingrese un numero: ");
    scanf("%lf", &x);
   
    if(x >= 0) {
    printf("resultado: %.2f\n", sqrt(x));
       }else{
        printf("No se puede calcular la raiz cuadrada de negativos.\n");
        }
    return 0;
}


Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: