using System;
class Program
{
public static void Main(string[] args)
{
int sum = 0;
int QuitNum = 0;
while (QuitNum != 1)
{
Console.WriteLine("Enter Two digit numbers... when you done enter ");
int oneDigit = int.Parse(Console.ReadLine());
int seconedDigit = int.Parse(Console.ReadLine());
sum = oneDigit + seconedDigit;
TFNumber(sum);
IsDivisibleBySeven(sum);
}
}
public static void TFNumber(int num1)
{
if ((num1 / 2) == 0)
{
Console.WriteLine("True");
}
else
Console.WriteLine("False");
}
public static bool IsDivisibleBySeven(int number)
{
if (number % 7 == 0)
{
return true;
}
else
{
return false;
}
}
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter