Program: Using Using Using Using Namespace Class
Program: Using Using Using Using Namespace Class
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SlotMachine
{
class Program
{
Console.WriteLine("******************************************");
Console.WriteLine("------------------------------------------");
Console.WriteLine("Welcome to SILVIA-DIANA's Slot Machine!");
Console.WriteLine("------------------------------------------");
Console.WriteLine("Press Spacebar to Roll the slot machine!");
Console.WriteLine("------------------------------------------");
Console.WriteLine("-------Credits Available: " + credits + "--------------");
Console.WriteLine("******************************************");
Console.WriteLine("******************************************");
Console.WriteLine("---££----Credits Available: " + credits + "-----£
£-----");
Console.WriteLine("******************************************");
if (keyInfo.Key == ConsoleKey.Spacebar)
{
credits--;
string slot1;
string slot2;
string slot3;
Console.WriteLine("------------------------------------------");
Console.WriteLine("1st Remainder Left over: " + modR1);
Console.WriteLine("2nd Remainder Left over: " + modR2);
Console.WriteLine("3rd Remainder Left over: " + modR3);
Console.WriteLine("------------------------------------------");
slot1 = slots[modR1];
slot2 = slots[modR2];
slot3 = slots[modR3];
else if ((slot1 == "LUCKY 7") && (slot2 == "LUCKY 7") && (slot3 ==
"LUCKY 7"))
{
else
{
keyInfo = Console.ReadKey(true);
else
{
Console.WriteLine("WRONG KEY!... Press Spacebar");
keyInfo = Console.ReadKey(true);
}
}
}
}
}