Advertisement
Werjil

Untitled

Nov 20th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Console.Write("Количество золота: ");
  2. int gold = Convert.ToInt32(Console.ReadLine());
  3. int crystal = 7;
  4. Console.WriteLine($"Стоимость кристала {crystal}");
  5. Console.Write("Сколько купить кристалов: ");
  6. int num = Convert.ToInt32(Console.ReadLine());
  7. Console.WriteLine($"У вас теперь {num} кристалов и {gold - crystal*num} золота");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement