You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
338 B
C#
11 lines
338 B
C#
5 years ago
|
using System;
|
||
|
public class Exercise14
|
||
|
{
|
||
|
public static void Main( )
|
||
|
{
|
||
|
Console.Write("Enter the amount of celsius: ");
|
||
|
int celsius = Convert.ToInt32(Console.ReadLine());
|
||
|
Console.WriteLine("Kelvin = {0}", celsius + 273);
|
||
|
Console.WriteLine("Fahrenheit = {0}", celsius * 18 / 10 + 32);
|
||
|
}
|
||
|
}
|