using System;
public class Program
{
public static void Main()
var rand = new Random();
int[] hand = {0,0,0,0,0,0,0,0,0,0};
int handTotal = 0;
int currentCard = 0;
while (handTotal < 22){
hand[currentCard] = (rand.Next(10) + 1);
Console.WriteLine("Current card: " + hand[currentCard]);
foreach (int card in hand){
handTotal += card;
}
Console.WriteLine("Hand Total: " + handTotal);