Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // :D
- string boodschap =
- prGeluk > 5 ? "Hallo mijn naam is {0}.\nIk ben vrolijk vandaag!\n" :
- prGeluk > 2 ? "{0} voelt zich niet lekker.\n" :
- prGeluk > 0 ? "{0} is GEK\n" :
- "Niets aan de hand. Verveel me.";
- // :(
- string boodschap;
- if (prGeluk > 5)
- {
- boodschap = "Hallo mijn naam is {0}.\nIk ben vrolijk vandaag!\n";
- }
- else if (prGeluk > 2)
- {
- boodschap = "{0} voelt zich niet lekker.\n";
- }
- else if (prGeluk > 0)
- {
- boodschap = "{0} is GEK\n";
- }
- else
- {
- "Niets aan de hand. Verveel me.";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement