Created
December 11, 2018 18:15
-
-
Save parzibyte/643c8ff869f57a2ca1209a6b9d259525 to your computer and use it in GitHub Desktop.
Función fabs en C created by parzibyte - https://repl.it/@parzibyte/Funcion-fabs-en-C
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 <stdio.h> // printf | |
#include <math.h> // fabs | |
int main(void) { | |
double negativo = -40.123; | |
printf("El valor absoluto de %f es %f", negativo, fabs(negativo)); | |
// El valor absoluto de -40.123000 es 40.123000 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment