Skip to content

Instantly share code, notes, and snippets.

@michaels123
Created September 21, 2018 13:36
Show Gist options
  • Save michaels123/7f2fb6613c3bf27b52105b6557bd89f3 to your computer and use it in GitHub Desktop.
Save michaels123/7f2fb6613c3bf27b52105b6557bd89f3 to your computer and use it in GitHub Desktop.
#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.";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment