Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace HW_2025
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- float gold, crystal;
- float convertIndexG = 10;
- Console.WriteLine("Hi! Сколько у вас ЗОЛОТА?");
- gold = Convert.ToSingle(Console.ReadLine());
- Console.WriteLine("\nБу, купи голды!\n\n" +
- "К У Р С\n" +
- "########\n" +
- "10g = 3cr\n" +
- "Сколько желаешь купить кристалов?");
- crystal = Convert.ToSingle(Console.ReadLine());
- gold = gold - (convertIndexG * crystal);
- Console.WriteLine($"У вас на счете:\n" +
- $"Золота = {gold}\n" +
- $"Кристалов = {crystal}");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment