Answer to Question #217401 in Programming & Computer Science for Kenny

Question #217401
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+y
        Const x As Double = 50.7
        Const y As Double = 25.3
        Dim sum As Integer = x + y
        Console.WriteLine("z = x + y = {0} + {1} = {2}", x, y, sum)
        Console.ReadLine()
    End Sub
End Module

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS