fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. int j, k;
  9. double f;
  10.  
  11. Console.WriteLine("Begin ...");
  12.  
  13. for (j = 255; j > 220; j-=3)
  14. {
  15. f = j * 0.95;
  16. k = (int)(Math.Round(j * 0.95));
  17.  
  18. Console.WriteLine($"{j} : {k} {f:N3}");
  19. }
  20.  
  21. Console.WriteLine("End.");
  22. }
  23. }
  24.  
Success #stdin #stdout 0.08s 31372KB
stdin
Standard input is empty
stdout
Begin ...
255 : 242 242.250
252 : 239 239.400
249 : 237 236.550
246 : 234 233.700
243 : 231 230.850
240 : 228 228.000
237 : 225 225.150
234 : 222 222.300
231 : 219 219.450
228 : 217 216.600
225 : 214 213.750
222 : 211 210.900
End.