using System;
public class Exercise034
{
public static void Main()
{
int num1, num2;
do
{
Console.Write("First number? ");
num1 = Convert.ToInt32(Console.ReadLine());
if (num1 != 0)
{
Console.Write("Second number? ");
num2 = Convert.ToInt32(Console.ReadLine());
if (num2 == 0)
{
Console.WriteLine("Cannot divide by 0");
Console.WriteLine();
}
else
{
Console.WriteLine("Division is {0}", num1 / num2);
Console.WriteLine("Remainder is {0}", num1 % num2);
Console.WriteLine();
}
}
}
while (num1 != 0);
Console.WriteLine("Bye!");
}
}