using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace testdivisibleby5
{
class Program
{
static void Main(string[] args)
{
int Num, nRim;
Console.WriteLine("Enter the Number");
Console.Write("Num:");
Num = Convert.ToInt32(Console.ReadLine());
nRim = Num%5;
if (nRim==0)
{
Console.Write("Number is divisible by 5");
Console.ReadLine();
}
else
{
Console.Write("Number is not divisible by 5");
Console.ReadLine();
}
}
}
}
No comments:
Post a Comment