Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace ConvertDegrees
  6. {
  7. class Program
  8.  
  9. {
  10. static void Main()
  11. {
  12. string inputString = Console.ReadLine();
  13. string[] results = inputString.Split(new char[] {' '}, StringSplitOptions.RemoveEmptyEntries);
  14. List<double> elementToDouble = new List<double>();
  15. elementToDouble.AddRange(results.Select(x => Convert.ToDouble(x)));
  16.  
  17. foreach (char value in elementToDouble)
  18. {
  19. double fValue = (value * 1.8) + 32;
  20. Console.WriteLine(Math.Round(fValue));
  21. }
  22.  
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement