Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static string DodajTekst(string tekst)
- {
- string s_tekst;
- while (true)
- {
- Console.WriteLine(tekst);
- s_tekst = Console.ReadLine();
- for(int i = 0; i <= (s_tekst.Length - 1); i++)
- {
- if (char.IsNumber(s_tekst[i]) == true)
- {
- Console.WriteLine("Wprowadzona wartosc jest niepoprawna!");
- continue;
- }
- }
- return s_tekest;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement