Created
August 7, 2019 23:39
-
-
Save parzibyte/bf27f9c0b6ccdd39d4d6be859ad05e5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include <stdio.h> | |
int main(int argc, char const *argv[]) | |
{ | |
double numero; // Aquí vamos a almacenar lo que el usuario introduzca | |
printf("Escribe un numero y te dire su raiz cuadrada\n"); | |
scanf("%lf", &numero); // Escanear lo que el usuario ingresa | |
double raizCuadrada = sqrt(numero); // Calcular raíz | |
printf("La raiz cuadrada de %lf es %lf\n", numero, raizCuadrada); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment