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 HomeWorck_1_1
- {
- class Program
- {
- static void Main(string[] args)
- {
- float usd;
- float rub;
- float cny;
- string check = "";
- Console.WriteLine("Сколько у вас валюты?");
- Console.WriteLine("Введите количество USD");
- usd = Convert.ToSingle(Console.ReadLine());
- Console.WriteLine("Введите количество RUB");
- rub = Convert.ToSingle(Console.ReadLine());
- Console.WriteLine("Введите количество CNY");
- cny = Convert.ToSingle(Console.ReadLine());
- while (check != "exit")
- {
- Console.WriteLine($"На вашем балансе: {usd} долларов, {rub} рублей, {cny} юаней.");
- Console.WriteLine()
- Console.WriteLine("Чтобы выйти из конвертера валют напишите: exit");
- check = Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement