Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- namespace DigitsLettersAndOther
- {
- class Program
- {
- static void Main()
- {
- string text = Console.ReadLine();
- Console.WriteLine(string.Join("", text.Where(x => char.IsDigit(x))));
- Console.WriteLine(string.Join("", text.Where(x => char.IsLetter(x))));
- Console.WriteLine(string.Join("", text.Where(x => !char.IsLetterOrDigit(x))));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement