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 ConsoleApplication4
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] hónapok = {"Január","Február","Március",
- "Április","Május","Június",
- "Július","Augusztus","Szeptember",
- "Október","November","December"};
- string s;
- bool go=true;
- do
- {
- Console.Write("Add meg a hónapot: ");
- s = Console.ReadLine();
- for (int i = 0; i < hónapok.Length; i++)
- if (hónapok[i] == s) go = false;
- }
- while (go);
- Console.WriteLine("\nVége.");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement