Created
April 12, 2020 04:52
-
-
Save parzibyte/ab1ccd31b22833fb54d570d05607d24b 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 <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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hola, Que asunto interesante. Le agregaría un salto de línea al final... << endl;