fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. WriteLine(eNumero(""));
  6. WriteLine(eNumero("a"));
  7. WriteLine(eNumero("5"));
  8. }
  9. public static bool eNumero(string s) {
  10. if (string.IsNullOrWhiteSpace(s)) return false;
  11. return (int)s[0] >= (int)'0' && (int)s[0] <= (int)'9';
  12. }
  13. }
  14.  
  15. //https://pt.stackoverflow.com/q/385165/101
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
 using static System.Console;
       ^~~~~~
prog.c:3:1: error: unknown type name ‘public’
 public class Program {
 ^~~~~~
prog.c:3:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Program’
 public class Program {
              ^~~~~~~
stdout
Standard output is empty