The answer is 2-to-the-power-of-n, since for every input, the number of different combinations doubles. From your list I think answer A is meant to indicate 2ⁿ.
Answer:
using System;
class CheckDigit
{
public static void Main (string[] args)
{ //Accepting value from user
Console.WriteLine ("Enter a four-digit account number");
int acc = Convert.ToInt32(Console.ReadLine());
int d=acc%10; //extracting the last digit
acc=acc/10; //having the first three digit
if(acc % 7 == d) //checking and displaying
Console.WriteLine ("Valid Account Number");
else
Console.WriteLine ("Invalid Account Number");
}
}
Explanation:
Answer:
yo! but I'm a ex-mobile legends
When was the Ming dynasty established?
the 1100s CE
the 1200s CE
the 1300s CE
the 1400s CE