Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication9
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Vilken färg är en banan?");
- Console.WriteLine("1 Svart");
- Console.WriteLine("2 Gul");
- Console.WriteLine("3 Grön");
- string banan = Console.ReadLine();
- if (banan == "2")
- {
- Console.WriteLine("Rätt Svar du fick 1 poäng");
- Console.WriteLine("Tryck för att fortsätta");
- }
- else {
- Console.WriteLine("Fel svar du fick 0 poäng");
- Console.WriteLine("Tryck för att fortsätta");
- }
- Console.ReadKey();
- Console.Clear();
- Console.WriteLine("Vilken frukt gillar åsnor?");
- Console.WriteLine("1 Päron");
- Console.WriteLine("2 Äpple");
- Console.WriteLine("3 Drakfrukt");
- string åsnor = Console.ReadLine();
- if (åsnor == "3")
- {
- Console.WriteLine("Rätt svar du fick 1 poäng");
- Console.WriteLine("Tryck för att fortsätta");
- }
- else
- {
- Console.WriteLine("Fel svar du fick 0 poäng");
- Console.WriteLine("Tryck för att fortsätta");
- }
- Console.ReadKey();
- Console.Clear();
- Console.WriteLine("I vilken värdsdel ligger Mosambik?");
- Console.WriteLine("1 Afrika");
- Console.WriteLine("2 Europa");
- Console.WriteLine("3 Sydamerika");
- string Mosambik = Console.ReadLine();
- if (Mosambik == "1")
- {
- Console.WriteLine("Rätt svar du fick 1 poäng");
- Console.WriteLine("Tryck för att fortsätta");
- }
- else
- {
- Console.WriteLine("Fel svar du fick 0 poäng");
- Console.WriteLine("Tryck för att fortsätta");
- }
- Console.ReadKey();
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement