Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace ConvertDegrees
- {
- class Program
- {
- static void Main()
- {
- string inputString = Console.ReadLine();
- string[] results = inputString.Split(new char[] {' '}, StringSplitOptions.RemoveEmptyEntries);
- List<double> elementToDouble = new List<double>();
- elementToDouble.AddRange(results.Select(x => Convert.ToDouble(x)));
- foreach (char value in elementToDouble)
- {
- double fValue = (value * 1.8) + 32;
- Console.WriteLine(Math.Round(fValue));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement