Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 11, 2018 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/943d1683cb0f4ca92893dc19b4d8e869 to your computer and use it in GitHub Desktop.
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
#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