Your Ad Here

Saturday, May 24, 2008

Division Of Two Numbers

/*** C# program to divide two numbers **/

using System;

namespace Program1
{
class except
{
static void Main(string[] args)
{
double a,b,ans;

Console.WriteLine("Enter A Number");
a = Convert.ToDouble(Console.ReadLine());

Console.WriteLine("Enter Another Number");
b = Convert.ToDouble(Console.ReadLine());

ans = a / b;

Console.WriteLine("Answer : " + ans);
}
}
}

No comments: