Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SimpleProblems
- {
- class Program
- {
- static void Main(string[] args)
- {
- int numberInt = 0;
- try
- {
- while (true)
- {
- var input = int.Parse(Console.ReadLine());
- numberInt++;
- }
- }
- catch (FormatException)
- {
- Console.WriteLine(numberInt);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment