fork download
  1. using System;
  2. using System.IO;
  3. using System.Text;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. string text = "";
  10. using (var streamReader = Console.In)
  11. {
  12. String line = String.Empty;
  13. while(!String.IsNullOrEmpty((line = streamReader.ReadLine())))
  14. {
  15. if(line.StartsWith("Latitude:"))
  16. {
  17. line = line.Substring(line.LastIndexOf(' ') + 1);
  18. Console.WriteLine(line);
  19. }
  20. }
  21. }
  22. Console.ReadKey();
  23. }
  24. }
Success #stdin #stdout 0.07s 24224KB
stdin
Latitude: 57°39′55″N   57.665198
Longitude: 6°57′27″W   -6.95739395
Distance: 184.8338 mi  Bearing: 329.815°
Latitude: 57°39′55″N   57.665198
Longitude: 6°57′27″W   -6.95739395
Distance: 184.8338 mi  Bearing: 329.815°
Latitude: 57°39′55″N   57.665198
Longitude: 6°57′27″W   -6.95739395
Distance: 184.8338 mi  Bearing: 329.815°
stdout
57.665198
57.665198
57.665198