Advertisement
saluxx

2

Sep 3rd, 2015
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 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("Welcome");
  15. Console.WriteLine("You will be able to see a question with 3 different options");
  16. Console.WriteLine("type 1,2 or 3 depending on what the answer you believe it is.");
  17. Console.WriteLine("");
  18. Console.WriteLine("Press any button to start the quiz");
  19.  
  20. Console.ReadKey();
  21. Console.Clear();
  22.  
  23. Console.WriteLine("Vilken färg är en banan?");
  24. Console.WriteLine("1 Svart");
  25. Console.WriteLine("2 Gul");
  26. Console.WriteLine("3 Grön");
  27. Console.WriteLine("");
  28. string banan = Console.ReadLine();
  29. if (banan == "2")
  30. {
  31. Console.WriteLine("Rätt Svar du fick 1 poäng");
  32. Console.WriteLine("Tryck för att fortsätta");
  33. }
  34. else
  35. {
  36. Console.WriteLine("Fel svar du fick 0 poäng");
  37. Console.WriteLine("Tryck för att fortsätta");
  38. }
  39. Console.ReadKey();
  40. Console.Clear();
  41.  
  42. Console.WriteLine("Vilken frukt gillar åsnor?");
  43. Console.WriteLine("1 Päron");
  44. Console.WriteLine("2 Äpple");
  45. Console.WriteLine("3 Drakfrukt");
  46. Console.WriteLine("");
  47. string åsnor = Console.ReadLine();
  48. if (åsnor == "3")
  49. {
  50. Console.WriteLine("Rätt svar du fick 1 poäng");
  51. Console.WriteLine("Tryck för att fortsätta");
  52. }
  53. else
  54. {
  55. Console.WriteLine("Fel svar du fick 0 poäng");
  56. Console.WriteLine("Tryck för att fortsätta");
  57. }
  58. Console.ReadKey();
  59. Console.Clear();
  60.  
  61. Console.WriteLine("I vilken värdsdel ligger Mosambik?");
  62. Console.WriteLine("1 Afrika");
  63. Console.WriteLine("2 Europa");
  64. Console.WriteLine("3 Sydamerika");
  65. Console.WriteLine("");
  66. string Mosambik = Console.ReadLine();
  67. if (Mosambik == "1")
  68. {
  69. Console.WriteLine("Rätt svar du fick 1 poäng");
  70. Console.WriteLine("Tryck för att fortsätta");
  71. }
  72. else
  73. {
  74. Console.WriteLine("Fel svar du fick 0 poäng");
  75. Console.WriteLine("Tryck för att fortsätta");
  76. }
  77. Console.ReadKey();
  78. Console.WriteLine();
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96. }
  97. }
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement