Created
December 11, 2018 18:04
-
-
Save parzibyte/943d1683cb0f4ca92893dc19b4d8e869 to your computer and use it in GitHub Desktop.
Función abs en C created by parzibyte - https://repl.it/@parzibyte/Funcion-abs-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 y scanf | |
#include <stdlib.h> // abs | |
int main(void) { | |
int negativo = -8; | |
printf("El valor absoluto de %d es %d", negativo, abs(negativo)); | |
// El valor absoluto de -8 es 8 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment