Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- using System.Threading;
- namespace Tren
- {
- class Program
- {
- static void Main(string[] args)
- {
- int h = 19;
- double a, b, c, d, e, f;
- double sum1 = (9 / 5 * 0) + 32;
- double sum2 = (9 / 5 * 20) + 32;
- double sum3 = (9 / 5 * 40) + 32;
- double sum4 = (9 / 5 * 60) + 32;
- double sum5 = (9 / 5 * 80) + 32;
- double sum6 = (9 / 5 * 100) + 32;
- string str = "Degrees Celsius Degrees Fahrenheit";
- Console.WriteLine(str);
- a = double.Parse(Console.ReadLine());
- if(a == 0.00)
- {
- for (int i = 0; i < h; i++)
- {
- Console.Write(" ");
- }
- Console.WriteLine(sum1);
- }
- b = double.Parse(Console.ReadLine());
- if (b == 20.00)
- {
- for (int i = 0; i < h; i++)
- {
- Console.Write(" ");
- }
- Console.WriteLine(sum2);
- }
- c = double.Parse(Console.ReadLine());
- if (c == 40.00)
- {
- for (int i = 0; i < h; i++)
- {
- Console.Write(" ");
- }
- Console.WriteLine(sum3);
- }
- d = double.Parse(Console.ReadLine());
- if (d == 60.00)
- {
- for (int i = 0; i < h; i++)
- {
- Console.Write(" ");
- }
- Console.WriteLine(sum4);
- }
- e = double.Parse(Console.ReadLine());
- if (e == 80.00)
- {
- for (int i = 0; i < h; i++)
- {
- Console.Write(" ");
- }
- Console.WriteLine(sum5);
- }
- f = double.Parse(Console.ReadLine());
- if (f == 100.00)
- {
- for (int i = 0; i < h; i++)
- {
- Console.Write(" ");
- }
- Console.WriteLine(sum6);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement