Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int schluss;
  8.     long double zahl1, zahl2;
  9.  
  10.         cout<<"Dies ist ein Taschenrechner:)!"<< endl
  11.             <<"Er kann 2 Zahlen addieren"<< endl
  12.             <<"Geben sie die 1. Zahl ein: "<< endl;
  13.                 cin>>zahl1;
  14.         cout<<"Geben sie die 2. Zahl ein: "<< endl;
  15.                 cin>>zahl2;
  16.  
  17.         cout<< zahl1 << "+" << zahl2 << "=" << zahl1+zahl2;
  18.  
  19.         cout<<"Beliebige Taste zum beenden drücken";
  20.                 cin>> schluss;
  21.  
  22. return 0;
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement