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 Program2
- {
- class Program
- {
- static void Main(string[] args)
- {
- int Punkty = 0;
- int NrPytania = 1;
- Console.WriteLine();
- Console.WriteLine("Odpowiadaj na pytania za pomoca liczb");
- Console.WriteLine("Liczba --- 1 --- oznacza Tak!");
- Console.WriteLine("Liczba --- 2 --- oznacza Nie!");
- Console.WriteLine();
- // PYTANIE 1
- Console.WriteLine("Pytanie numer " + NrPytania);
- Console.WriteLine("Czy lubisz pic mleko");
- ConsoleKeyInfo input = Console.ReadKey();
- Console.WriteLine();
- Console.Write("Wpisales: {0}, ", input.KeyChar);
- if (input.KeyChar == '1')
- {
- NrPytania++;
- Punkty++;
- Console.WriteLine("Odpowiedziales Tak");
- }
- else
- {
- NrPytania++;
- Console.WriteLine("Odpowiedziales Nie");
- }
- // PYTANIE 2
- Console.WriteLine("Pytanie numer " + NrPytania);
- Console.WriteLine("Czy podoba Ci sie orzech");
- Console.WriteLine();
- Console.Write("Wpisales: {0}, ", input.KeyChar);
- if (input.KeyChar == '1')
- {
- NrPytania++;
- Punkty++;
- Console.WriteLine("Odpowiedziales Tak");
- }
- else
- {
- NrPytania++;
- Console.WriteLine("Odpowiedziales Nie");
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement