Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace Teodor
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] Places = new string[50];
- Console.WriteLine("Vyvedete naseleno mqsto ili 0 za da sprete vyvejdaneto:");
- for (int i = 0; i < Places.Length; i++)
- {
- string r = Console.ReadLine();
- if(r == "0")
- {
- break;
- }else
- {
- Places[i] = r;
- }
- }
- Console.WriteLine("Printing places that meet cond:");
- foreach (var item in Places)
- {
- if(item == null)
- {
- continue;
- }
- if(item.Any(Char.IsWhiteSpace))
- {
- Console.Write("{0},",item);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement