fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace program
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. int celsius, faren;
  13. Console.WriteLine("Enter the Temperature in Celsius(°C) : ");
  14. celsius = int.Parse(Console.ReadLine());
  15. faren = (celsius * 9) / 5 + 32;
  16. Console.WriteLine("{0}(°C) Temperature in Fahrenheit is {1}(°F) : ",celsius, faren);
  17.  
  18. Console.WriteLine("Enter the Temperature in Fahrenheit(°F) : ");
  19. celsius = int.Parse(Console.ReadLine());
  20. celsius = 5* (faren -32)/9;
  21. Console.WriteLine("{0}(°F)Temperature in Celsius is {1}(°C) : ",faren ,celsius);
  22. Console.ReadLine();
  23.  
  24.  
  25. }
  26. }
  27. }
  28.  
Success #stdin #stdout 0.02s 16168KB
stdin
30
86
stdout
Enter the Temperature in Celsius(°C) : 
30(°C) Temperature in Fahrenheit is 86(°F) : 
Enter the Temperature in Fahrenheit(°F) : 
86(°F)Temperature in Celsius is 30(°C) :