If x= 50.7,y=25.3 and z is defined as integer z, calculate z=x+y?
1
Expert's answer
2021-07-15T00:11:37-0400
Module Module1
Sub Main()
'x= 50.7,y=25.3 and z is defined as integer z, calculate z=x+yConst x AsDouble = 50.7Const y AsDouble = 25.3Dim sum AsInteger = x + y
Console.WriteLine("z = x + y = {0} + {1} = {2}", x, y, sum)
Console.ReadLine()
EndSubEndModule
Comments