|
|
back to boardРешение C# | Solution C# Posted by Viktor 5 Apr 2017 03:22 using System; namespace t1000{ class Program{ public static void Main(string[] args){ string[] s = Console.ReadLine().Split(' '); Console.WriteLine(int.Parse(s[0]) + int.Parse(s[1])); } } } Re: Решение C# | Solution C# Posted by Stas 10 Jun 2018 01:46 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 {
class Program { static void Main(string[] args) { int a, b; a=Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(a + b);
} } } Why my method is incorrect? |
|
|