fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Random rand = new Random();
  8. int x = rand.Next(1, 100);
  9. int y = rand.Next(1, 100);
  10. while (x % y != 0 && x != y)
  11. {
  12. y = rand.Next(1, 100);
  13. }
  14.  
  15. int d = x / y;
  16.  
  17. Console.WriteLine($"{d} {x} {y}");
  18. }
  19. }
Success #stdin #stdout 0.04s 23896KB
stdin
Standard input is empty
stdout
9  81 9