ADD TWO NUMBER

Ashish Pandey

Total Post:128

Points:898
Posted by  Ashish Pandey
C# 
C#
 1651  View(s)
Ratings:
Rate this:
Hi,
Please resolve my problem!
How to add two number without using any variables in .NET(C#, Console )?
  1. Vijay Shukla

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

Answer

NEWSLETTER

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