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 CSlight1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Сколько у вас золота?");
- int gold = Convert.ToInt32(Console.ReadLine());
- int priceCrystal = 3;
- int convertG_C = gold / priceCrystal;
- int overG = gold % priceCrystal;
- Console.WriteLine("Вы можете купить: " + convertG_C + " Кристаллов");
- Console.WriteLine("У вас останется: " + overG + " золота");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement