Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- private static void Main()
- {
- string text = Console.ReadLine();
- var kol = 0;
- for (int i = 0; i < text.Length; i++)
- {
- if (Char.IsDigit(text,i))
- {
- kol++;
- }
- }
- Console.WriteLine(kol.ToString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment