Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- char tav;
- int count = 0;
- Console.WriteLine("enter tav's");
- tav = (char)(Console.Read());
- while (tav != (char)10)
- {
- if (tav != (char)32)
- count++;
- Console.WriteLine("enter tav's");
- tav = (char)(Console.Read());
- }
- Console.WriteLine(count);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement