Guest User

Untitled

a guest
Apr 26th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.54 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int Tag;
  9.     int Monat;
  10.     int Jahr;
  11.    
  12.     cout << "An welchen Tag wurdest du geboren ? " << endl;
  13.     cin >> Tag;
  14.     cout << " Du wurdest also am " <<Tag<< " geboren. " << endl;
  15.     {
  16.          if( Tag == 5)
  17.          cout << "An dem Tag habe ich auch Geburtstag" << endl;
  18.          }
  19.     cout << "In welchem Monat wurdest du geboren ?" << endl;
  20.     cin >> Monat;
  21.     cout << " Du wurdest also im " <<Monat<<". Monat des Kalenders geboren" << endl;
  22.    {
  23.          if( Monat == 2)
  24.          cout << "In dem Monat wurde ich auch geboren" << endl;
  25.          }
  26.     cout << " In welchem Jahr war das ? " << endl;
  27.     cin >> Jahr;
  28.     cout << " Also wurdest du im Jahr "<<Jahr<<" geboren." << endl;
  29.     {
  30.          if( Jahr == 2011)
  31.          cout << "In dem Jahr wurde ich auch geboren" << endl;
  32.          }
  33.          
  34.          cout << " Du wurdest also am: " << endl;
  35.          cout << Tag << "." << Monat << "." << Jahr << " geboren." << endl;
  36.          {
  37.               if( Tag == 5)
  38.               if( Monat == 2)
  39.               if( Jahr == 2011)
  40.               cout << "Du hast am selben Tag Geburtstag wie ich" << endl;
  41.          system("pause");
  42.  
  43. }
  44.          {
  45.              if( Tag == 9)
  46.                  cout << "Am 9. haben nur Opfer Geburtstag :( " << endl;
  47.          }
  48.          {
  49.              if( Tag == 9)
  50.                  cout << "Am 9. haben nur cool Leute Geburtstag, das ist cool" << endl;
  51.          }
  52.          {
  53.              if( Jahr == 1950);
  54.                  cout << " Du steckst also in den besten Jahren :D" << endl;
  55.          }
  56. }
Add Comment
Please, Sign In to add comment