Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. sing System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp3
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. Console.Write("Degrees in celsius = ");
  14. var celsius = double.Parse(Console.ReadLine());
  15. var fahrenheit = (celsius *9/5 +32);
  16.  
  17. fahrenheit = Math.Round(fahrenheit, 2);
  18.  
  19. Console.WriteLine("Degrees in Fahrenheit = " + fahrenheit);
  20.  
  21.  
  22. }
  23. }
  24. }
  25.  
  26.  
  27.  
  28. -------------------------------------------------------------------------------------
  29. 10-Ρ‚Π°
  30.  
  31. using System;
  32. using System.Collections.Generic;
  33. using System.Linq;
  34. using System.Text;
  35. using System.Threading.Tasks;
  36.  
  37. namespace ConsoleApp3
  38. {
  39. class Program
  40. {
  41. static void Main(string[] args)
  42. {
  43. Console.Write("radians = ");
  44. var radians = double.Parse(Console.ReadLine());
  45. var degrees = (radians * 180/Math.PI);
  46.  
  47. degrees = Math.Round(degrees, 0);
  48.  
  49. Console.WriteLine("Degrees = " + degrees);
  50. }
  51. }
  52. }
  53.  
  54. -----------------------------------------------------------------
  55. 11Ρ‚Π°
  56.  
  57. using System;
  58. using System.Collections.Generic;
  59. using System.Linq;
  60. using System.Text;
  61. using System.Threading.Tasks;
  62.  
  63. namespace ConsoleApp3
  64. {
  65. class Program
  66. {
  67. static void Main(string[] args)
  68. {
  69. Console.Write("USD = ");
  70. var dollars = double.Parse(Console.ReadLine());
  71. var lev = (dollars * 1.79549);
  72.  
  73. lev = Math.Round(lev, 2);
  74.  
  75. Console.WriteLine("BGN = " + lev);
  76. }
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement