Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _02._Inches_to_Cm
- {
- class Program
- {
- static void Main(string[] args)
- {
- //1. прочитаме дробно число -> инчове
- //2. преобразувам инчове в см -> см = инч * 2.54
- //3. отпечатваме см
- double inches = double.Parse(Console.ReadLine());
- double cm = inches * 2.54;
- Console.WriteLine(cm);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment