add two number

Total Post:128

Points:898

C# 
C#
 1965  View(s)
Ratings:
Rate this:
Hi,
Please resolve my problem!
How to add two number without using any variables in .NET(C#, Console )?
  1. Re: add two number

    Hii Ashish Thats your solution.

    using System;
    class A
    {
       public static void Main(String []args)
       {
           Console.WriteLine(Convert.ToInt32(Console.ReadLine())+Convert.ToInt32(Console.ReadLine()));
       }
    }

      Modified On Mar-29-2018 05:41:12 AM

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.