/******************************************************/ /* Introduction to Programming */ /* By Dr. ANTF */ /* www.antf.net */ /* Copyright 2015 */ /* */ /* C# 211 - Problem 8: Is Divisible */ /******************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DOS { class Program { static void Main(string[] args) { int num1, num2; Console.Write("Enter the first number: "); num1 = int.Parse(Console.ReadLine()); Console.Write("Enter the second number: "); num2 = int.Parse(Console.ReadLine()); if (num1 % num2 == 0) Console.WriteLine("\n\n{0} is divisible by {1}", num1, num2); else Console.WriteLine("\n\n{0} is NOT divisible by {1}", num1, num2); Console.ReadKey(); } } }