Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. char tav;
  4. int count = 0;
  5. Console.WriteLine("enter tav's");
  6. tav = (char)(Console.Read());
  7. while (tav != (char)10)
  8. {
  9.  
  10. if (tav != (char)32)
  11. count++;
  12. Console.WriteLine("enter tav's");
  13. tav = (char)(Console.Read());
  14. }
  15. Console.WriteLine(count);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement