+ 1

I need help. String a = Console.Readline (); İf ( a!= number) ... a must be number if isnt number console.writeline ( "no")

23rd Oct 2017, 9:42 AM
Münir Furkan Gören
Münir Furkan Gören - avatar
9 ответов
+ 4
oh, haha) I m a beginner) So reading is hard)
23rd Oct 2017, 10:57 AM
Радужная Дэки
Радужная Дэки - avatar
+ 3
so hard to read your code...really...
23rd Oct 2017, 10:02 AM
Радужная Дэки
Радужная Дэки - avatar
+ 2
you may use bool
23rd Oct 2017, 9:43 AM
Радужная Дэки
Радужная Дэки - avatar
+ 2
Thanks i found
23rd Oct 2017, 10:01 AM
Münir Furkan Gören
Münir Furkan Gören - avatar
+ 2
using System; using System.Linq; // https://www.sololearn.com/Discuss/789684/?ref=app namespace SoloLearn { class Program { static void Main(string[] zephyr_koo) { var input = "jdiu8488HG+;+$jxjB67z"; // Console.ReadLine(); Console.WriteLine(GetByLetterFilter(input)); } static string GetByLetterFilter(string input) { return new string(input.Where(c => char.IsLetter(c)).ToArray()); } } }
23rd Oct 2017, 10:01 AM
Münir Furkan Gören
Münir Furkan Gören - avatar
+ 2
Finnaly not char.IsLetter
23rd Oct 2017, 10:02 AM
Münir Furkan Gören
Münir Furkan Gören - avatar
+ 2
Is.Digit
23rd Oct 2017, 10:02 AM
Münir Furkan Gören
Münir Furkan Gören - avatar
+ 2
But not my code:))
23rd Oct 2017, 10:08 AM
Münir Furkan Gören
Münir Furkan Gören - avatar
23rd Oct 2017, 10:34 AM
Münir Furkan Gören
Münir Furkan Gören - avatar