Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _02.InchesToCm
- {
- class Program
- {
- static void Main(string[] args)
- {
- //1. взимаме число (реално, дробно или десетично) инчове
- //2. изчисляваме см -> 1 инч = 2.54 см
- //см = инч * 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