Advertisement
saluxx

Untitled

Sep 3rd, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication9
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14. Console.WriteLine("Vilken färg är en banan?");
  15. Console.WriteLine("1 Svart");
  16. Console.WriteLine("2 Gul");
  17. Console.WriteLine("3 Grön");
  18. string banan = Console.ReadLine();
  19. if (banan == "2")
  20. {
  21. Console.WriteLine("Rätt Svar du fick 1 poäng");
  22. Console.WriteLine("Tryck för att fortsätta");
  23. }
  24. else {
  25. Console.WriteLine("Fel svar du fick 0 poäng");
  26. Console.WriteLine("Tryck för att fortsätta");
  27. }
  28. Console.ReadKey();
  29. Console.Clear();
  30.  
  31. Console.WriteLine("Vilken frukt gillar åsnor?");
  32. Console.WriteLine("1 Päron");
  33. Console.WriteLine("2 Äpple");
  34. Console.WriteLine("3 Drakfrukt");
  35. string åsnor = Console.ReadLine();
  36. if (åsnor == "3")
  37. {
  38. Console.WriteLine("Rätt svar du fick 1 poäng");
  39. Console.WriteLine("Tryck för att fortsätta");
  40. }
  41. else
  42. {
  43. Console.WriteLine("Fel svar du fick 0 poäng");
  44. Console.WriteLine("Tryck för att fortsätta");
  45. }
  46. Console.ReadKey();
  47. Console.Clear();
  48.  
  49. Console.WriteLine("I vilken värdsdel ligger Mosambik?");
  50. Console.WriteLine("1 Afrika");
  51. Console.WriteLine("2 Europa");
  52. Console.WriteLine("3 Sydamerika");
  53. string Mosambik = Console.ReadLine();
  54. if (Mosambik == "1")
  55. {
  56. Console.WriteLine("Rätt svar du fick 1 poäng");
  57. Console.WriteLine("Tryck för att fortsätta");
  58. }
  59. else
  60. {
  61. Console.WriteLine("Fel svar du fick 0 poäng");
  62. Console.WriteLine("Tryck för att fortsätta");
  63. }
  64. Console.ReadKey();
  65. Console.WriteLine();
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. }
  84. }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement