Try this:
using System;
public class Program
{
public static void Main()
{
int input;
bool isInteger = false;
do
{
Console.WriteLine("Input a positive integer:");
isInteger = Int32.TryParse(Console.ReadLine(), out input);
}
while (!(isInteger && input >= 0));
Console.WriteLine("You have input " + input);
}
}