add two number

Total Post:128

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

    Points:700
    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!