Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class DemoReadConsole2
- {
- static void Main()
- {
- //1. Get the inches
- Console.WriteLine("Инчове към сантиметри:");
- double inches = double.Parse(Console.ReadLine());
- //2. Calculate
- double centimeters = inches * 2.54;
- //3. Print
- Console.WriteLine("Сантиметри");
- Console.WriteLine(centimeters);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement