Home > DeveloperSection > Forums > add two number
Ashish Pandey

Total Post:128

Points:898
Posted on    December-03-2012 8:34 AM

 C# C# 
Ratings:


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


Vijay Shukla

Total Post:100

Points:700
Posted on    December-04-2012 12:12 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick