Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp7
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("--- 4. feladat ---");
- Console.WriteLine("Kérek Celsius °C értéket:");
- double Cel = double.Parse(Console.ReadLine());
- double Fah = Cel * 9 / 5 + 32;
- double Kel = Cel + 273.15;
- Console.WriteLine("A megadott érték °F-ben: " + Fah );
- Console.WriteLine("A megadott érték °K-ben: " + Kel);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement