Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("Введите стартовое золото:");
- int countGold = Convert.ToInt32( Console.ReadLine());
- Console.WriteLine("Введите цену кристала:");
- int priceKristal = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("Вы можете купить "+ (countGold / priceKristal) + " кристала. Введите требуемое кол-во кристалов:");
- int needKristal = Convert.ToInt32(Console.ReadLine());
- countGold = countGold -(needKristal * priceKristal);
- Console.WriteLine("У Вас "+countGold+" золота и "+needKristal+" кристалов");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement