示例#1
0
        static private void PrimeNumberTest()
        {
            bool Check = true;

            Check = Check && PanDigit.DivSubstring(1406357289).Equals(true);
            System.Console.WriteLine($"Division Substring Test:  {(Check == true ? "done" : "errur")}");
        }
示例#2
0
        static private void PrimeNumberTest()
        {
            bool Check = true;

            Check = Check && PanDigit.PrimeNumber(1).Equals(true);
            Check = Check && PanDigit.PrimeNumber(2).Equals(true);
            Check = Check && PanDigit.PrimeNumber(3).Equals(true);
            Check = Check && PanDigit.PrimeNumber(6).Equals(false);
            Check = Check && PanDigit.PrimeNumber(100).Equals(false);
            Check = Check && PanDigit.PrimeNumber(17).Equals(true);
            Check = Check && PanDigit.PrimeNumber(19).Equals(true);
            Check = Check && PanDigit.PrimeNumber(31).Equals(true);
            System.Console.WriteLine($"Prime Number Test:  {(Check == true ? "done" : "errur")}");
        }
示例#3
0
        static private void PanDigitTest()
        {
            bool Check = true;

            Check = Check && PanDigit.PanDigital(1).Equals(true);
            Check = Check && PanDigit.PanDigital(2).Equals(true);
            Check = Check && PanDigit.PanDigital(3).Equals(true);
            Check = Check && PanDigit.PanDigital(103).Equals(true);
            Check = Check && PanDigit.PanDigital(11).Equals(false);
            Check = Check && PanDigit.PanDigital(17).Equals(true);
            Check = Check && PanDigit.PanDigital(191).Equals(false);
            Check = Check && PanDigit.PanDigital(3113).Equals(false);
            Check = Check && PanDigit.PanDigital(1234567890).Equals(true);
            System.Console.WriteLine($"Pan Number Test:  {(Check == true ? "done" : "errur")}");
        }
示例#4
0
 static void Main(string[] args)
 {
     //9876543201
     PanDigitalNumberTest.GeneralTest();
     PanDigit.SearchNumber();
 }
示例#5
0
 static void Main(string[] args)
 {
     //16695334890
     PanDigitalNumberTest.GeneralTest();
     PanDigit.SearchNumber();
 }