fork(3) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. if (comparaNum(90))
  8. Console.WriteLine("Dentro do intervalo entre 1 a 25");
  9. else
  10. Console.WriteLine("Fora do intervalo");
  11. }
  12.  
  13. public static bool comparaNum(int n)
  14. {
  15. return (n >= 1 && n <= 25);
  16. }
  17. }
Success #stdin #stdout 0.04s 23864KB
stdin
Standard input is empty
stdout
Fora do intervalo