using System; public class Test { public static void Main() { for (decimal x = 1 ; x != 2 ; x+=0.01M) { decimal y = Math.Ceiling(2*x) / 2; Console.WriteLine("{0:#.##} {1:#.##}", x, y); } } }