13
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
8
int C = 10;
9
decimal F = C * 1.8 + 32;
10
11
Console.WriteLine(F);
12
}
13
}
Cached Result
Compilation error (line 9, col 15): Cannot implicitly convert type 'double' to 'decimal'. An explicit conversion exists (are you missing a cast?)