Last active
September 21, 2018 13:38
-
-
Save michaels123/e5aeb4868979f3ec015350fc92011503 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 <iostream> | |
int main () | |
{ | |
int ergebnis; | |
std::cout << "Was ist das Ergebnis aus 2 + 3?" << std::endl; | |
std::cin >> ergebnis; | |
if (ergebnis == 5) | |
{ | |
std::cout << "Sie haben die Aufgabe richtig gel\224st."; | |
} | |
if ((ergebnis > 5) || (ergebnis < 5)) | |
{ | |
std::cout << "Falsches Ergebnis!"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment