Guest User

Untitled

a guest
Oct 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. using namespace std; // schlechter stil
  5.  
  6. int main()
  7. {
  8. int iNahrung = 50;
  9.  
  10. switch(iNahrung)
  11. {
  12.   case 100:
  13.      cout << "Du hast maximale Gesundheit" << endl;
  14.      break;
  15.   case 50:
  16.      cout << "Du hast halbe Gesundheit" << endl;
  17.      break;
  18.   case 0:
  19.      cout << "Du hast 0 Gesundheit" << endl;
  20.      break;
  21.  
  22. }
  23. _getch();
  24. return NULL;
  25. }
Add Comment
Please, Sign In to add comment