Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace marchExams
- {
- class Program
- {
- static void Main(string[] args)
- {
- char n = char.Parse(Console.ReadLine());
- int n1 = int.Parse(Console.ReadLine());
- char m = char.Parse(Console.ReadLine());
- int m1 = int.Parse(Console.ReadLine());
- char k = char.Parse(Console.ReadLine());
- int k1 = int.Parse(Console.ReadLine());
- int ns = n + n1;
- int ms = m + m1;
- int ks = k + k1;
- char symbol1 = (char)ns;
- char symbol2 = (char)ms;
- char symbol3 = (char)ks;
- if (symbol1 == '7' && symbol2 == '7' && symbol3 == '7')
- {
- Console.WriteLine($"{symbol1}{symbol2}{symbol3}");
- Console.WriteLine("*** JACKPOT ***");
- }
- else if (symbol1 == '@' && symbol2 == '@' && symbol3 == '@')
- {
- Console.WriteLine($"{symbol1}{symbol2}{symbol3}");
- Console.WriteLine("!!! YOU LOSE EVERYTHING !!!");
- }
- else
- {
- Console.WriteLine($"{symbol1}{symbol2}{symbol3}");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement