Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 12, 2020 04:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/ab1ccd31b22833fb54d570d05607d24b to your computer and use it in GitHub Desktop.
Save parzibyte/ab1ccd31b22833fb54d570d05607d24b to your computer and use it in GitHub Desktop.
#include <cmath>
#include <iostream>
using namespace std;
int main() {
float valor;
cout << "Escribe un numero flotante: ";
cin >> valor;
float valorAbsoluto = abs(valor);
cout << "El valor absoluto es " << valorAbsoluto;
}
@quiquep2003
Copy link

Hola, Que asunto interesante. Le agregaría un salto de línea al final... << endl;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment