Vote count:
0
static int Div(int[] array, int n)
{
if (n== 1)
{
return array[0];
}
return Div(array, n - 1);
}
static void Main(string[] args)
{
int[] array = new int[] { 3, 4, 8, 9,6};
for (int i = 0; i < array.Length; i++)
{
Console.WriteLine(Div(array));
}`
asked 52 secs ago
Check if number is divisible by 7 recurrence
Aucun commentaire:
Enregistrer un commentaire