Skip to main content
deleted 18 characters in body
Source Link
Jacob
  • 1.6k
  • 14
  • 23

C# in LINQPad, 5728

void Main(){Console.Write(Console.ReadLine().Sum(i=>i));}

C#, 57

void Main(){Console.Write(Console.ReadLine().Sum(i=>i));}

C# in LINQPad, 28

Console.ReadLine().Sum(i=>i)
added 21 characters in body
Source Link
Jacob
  • 1.6k
  • 14
  • 23

C#, 3657

intvoid CMain(string a){return aConsole.Write(Console.ReadLine().Sum(i=>i));}

C#, 36

int C(string a){return a.Sum(i=>i);}

C#, 57

void Main(){Console.Write(Console.ReadLine().Sum(i=>i));}
Source Link
Jacob
  • 1.6k
  • 14
  • 23

C#, 36

int C(string a){return a.Sum(i=>i);}