VB.Net/Language Basics/Decimal — различия между версиями
| Admin (обсуждение | вклад) м (1 версия) | |
| (нет различий) | |
Версия 16:40, 26 мая 2010
Convert String to Decimal
Imports System
Public Class MainClass
   Shared Sub Main()
        Dim cdeg As Decimal
        Console.Write("Enter the degrees in centigrade...")
        cdeg = CDec(Console.ReadLine())
        Dim fdeg As Decimal
        fdeg = (((9@ / 5) * cdeg) + 32)
        Console.WriteLine(cdeg & " is " & fdeg & " degrees Fahrenheit.")
   End Sub 
End Class