© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
22 replies
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);
            
        }
    }

}
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);
            
        }
    }

}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ How can I do this?
C#CC# / help
3y ago
how do I disable this
C#CC# / help
2y ago
✅ how do i fix this?
C#CC# / help
2y ago