Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(int argc, char** argv) {
- long long int eingabeEins, eingabeZwei;
- cout<<"Geben Sie die erste Zahl ein: \t";
- cin>>eingabeEins;
- cout<<"Geben Sie die zweite Zahl ein: \t";
- cin>>eingabeZwei;
- cout<<"--------------------------------------\n"; // Nette Trennlinie
- if (eingabeEins+eingabeZwei/2>=5&eingabeEins%2>0) { // Bedingung
- cout<<"Die Summe lautet: "<<eingabeEins+eingabeZwei<<"\n\n"; // Ausgabe der Summe
- }else{
- cout<<"Error\n";
- }
- system("pause"); // Pausiert das Programm
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement