Guest User

Untitled

a guest
May 26th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main ()
  4.  
  5. {
  6.  
  7.     int Apfel;
  8.     int Birne;
  9.     int Gesamt = 0;
  10.    
  11.     std::cout << "Wie viele Äpfel sollen es sein: " << std::endl;
  12.     std::cin >> Apfel;
  13.  
  14.     std::cout << "Wie viele Birnen sollen es sein: " << std::endl;
  15.     std::cin >> Birne;
  16.  
  17.     Gesamt = Apfel + Birne;
  18.     std::cout << "Es sind insgesammt: "<< Gesamt << " Fruechte." std::endl;
  19.  
  20.     return 0;
  21.  
  22. }
Add Comment
Please, Sign In to add comment