Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Program
- {
- private static void Main(string[] args)
- {
- int crystalPrice = 3, goldenCoins, crystals;
- Console.WriteLine("Введите кол-во золота что бы добавить... .");
- goldenCoins = Convert.ToInt32(Console.ReadLine());
- Console.Clear();
- Console.WriteLine($"Сколько кристаллов вы хотите купить по цене {crystalPrice}");
- crystals = int.Parse(Console.ReadLine());
- goldenCoins -= crystals * crystalPrice;
- Console.WriteLine($"В вашем кошельке осталось {goldenCoins} золота и {crystals} кристаллов");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement