Welcome

Hi! This blog is for beginners of c++ and java .You can check and pick codes for your programming assignments. This will also help you to understand the concepts of these programming languages. Its all about programming.

Sunday, July 17, 2011

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace simple
{
    class Program
    {
        static void Main(string[] args)
        {
            int a,b,c;
            Console.WriteLine("enter 1st integer\n");
            a = Convert.ToInt16(Console.ReadLine());
            Console.WriteLine("enter 2nd integer\n");
            b = Convert.ToInt16(Console.ReadLine());
            c = a + b;
            Console.WriteLine("sum of {0} and {1} is{2}", a, b, c);
            Console.WriteLine("difference of {0} {1} is {2}", a, b, a - b);
            Console.WriteLine("multiplication of {0} and {1} is {2}", a, b, a * b);
            Console.WriteLine("division of {0} and {1} is {2}", a, b, a / b);
            Console.ReadKey();
        }
    }
}
//TikroSoft