fork(43) download
  1. using System;
  2. using System.Globalization;
  3. using System.Linq;
  4. using System.Collections.Generic;
  5.  
  6. public class Test
  7. {
  8.  
  9.  
  10. public static void Main()
  11. {
  12. float f = 6.3f;
  13. float[] ff = Enumerable.Range(0, (int)Math.Ceiling(f))
  14. .Select(i => (float)Math.Round(i + (f - (int)f), 1))
  15. .ToArray();
  16. foreach(var num in ff)
  17. Console.WriteLine(num);
  18. }
  19. }
Success #stdin #stdout 0.03s 33968KB
stdin
Standard input is empty
stdout
0.3
1.3
2.3
3.3
4.3
5.3
6.3