Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SlotMachine
- {
- class Program
- {
- static void Main()
- {
- string result = string.Empty;
- for (int i = 0; i < 3; i++)
- {
- char n = char.Parse(Console.ReadLine());
- int n1 = int.Parse(Console.ReadLine());
- char newChar = (char)(n + n1);
- result += newChar;
- }
- Console.WriteLine(result);
- if (result == "@@@")
- {
- Console.WriteLine("!!! YOU LOSE EVERYTHING !!!");
- }
- else if (result == "777")
- {
- Console.WriteLine("*** JACKPOT ***");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement