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 ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int gold;
- int cri;
- int criPrice = 257;
- Console.Write("Введите начальное количество золота ");
- gold = Convert.ToInt32(Console.ReadLine());
- Console.Write("Сколько кристаллов вы хотите купить? ");
- cri = Convert.ToInt32(Console.ReadLine());
- gold = gold - cri * 257;
- Console.Write("оставшаяся сумма : " + gold);
- Console.WriteLine();
- Console.Write("количество купленных кристаллов : " + cri);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement