using System.Collections.Generic;
class Program
{
static void Main()
{
int a, b,result;
Console.WriteLine("www.promohack.blogspot.com");
Console.WriteLine("Enter the first number");
a =Convert.ToInt16( Console.ReadLine());
Console.WriteLine("Enter the second number");
b = Convert.ToInt16(Console.ReadLine());
if (b == 0||b>a)
{
Console.WriteLine("Your second number should not be zero or greater than first number");
}
else
{
result = a / b;
Console.WriteLine("Your result is "+result);
}
Console.ReadLine();
}
}
Thank You.
Comments
Post a Comment