Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. class Program
  2. {
  3. static void Main(string[] args)
  4. {
  5. List<string> questions = new List<string>()
  6. {
  7. "Pytanie nr 1",
  8. "Pytanie nr 2",
  9. "Pytanie nr 3",
  10. "Pytanie nr 4",
  11. "Pytanie nr 5",
  12. };
  13.  
  14. List<string> answers = new List<string>();
  15.  
  16. foreach (var question in questions)
  17. {
  18. Console.WriteLine(question);
  19. var answer = Console.ReadLine();
  20. answers.Add(answer);
  21. }
  22.  
  23. // tutaj sprawdzenie odpowiedzi i przydzielenie zawodu
  24.  
  25. if (questions[1] == "Tak") Console.WriteLine("Twój zawód to...");
  26. else Console.WriteLine("Brak zawodu dla ludzi z twoim wykształceniem");
  27. /// i tak dalej
  28. ///
  29. Console.ReadKey();
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement