fork download
  1. using System;
  2. public class C {
  3. public void M() {
  4. int n = int.Parse(Console.ReadLine());
  5. int a = int.Parse(Console.ReadLine());
  6. int b = int.Parse(Console.ReadLine());
  7. int numbers = 0;
  8.  
  9. for (int i=1; i<=b; i++)
  10. {
  11. int m = i;
  12.  
  13. for (int k=2; k<=n; k++)
  14. {
  15. m *= m;
  16. }
  17. if (m>=a&&m<=b)
  18. {
  19. numbers+=1;
  20. }
  21.  
  22. }
  23. Console.WriteLine(numbers);
  24. }
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
error CS5001: Program `prog.exe' does not contain a static `Main' method suitable for an entry point
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty