C#C
C#3y ago
krfx

How can i do this:?

Hi, this is my code
using System;
using System.Text;
using System.Threading.Tasks;

namespace Workspace
{
    class Program
    {
        static void Main(string[] args)
        {
            int result;
            Console.WriteLine("Enter the numbers:");
            int input1 = Convert.ToInt32(Console.ReadLine());
            int input2 = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Result: {0}", input1 + input2);
            
        }
    }

}
Was this page helpful?