BasicKnowledgeCSharp/LessonsAndTasks/Task Home 3 - Конвертер валют/Program.cs
Dvurechensky 058c8f2679 1.0
Main
2024-10-05 09:59:53 +03:00

29 lines
801 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
/*
* 3. Напишите простой конвертер валют
* (без возможности динамического выбора валюты пользователем).
* Валюты заданы хардкодом и не изменяются. Тип валют на выбор программиста.
*/
namespace Task_Home_3___Конвертералют
{
class Program
{
static void Main(string[] args)
{
//#3
double ruble, dollar;
Console.WriteLine("Введите количество рублей: ");
double.TryParse(Console.ReadLine(), out ruble);
dollar = ruble * 0.014;
Console.WriteLine("Долларов: " + dollar);
}
}
}