What would be printed from the following VB.NET program?

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

What would be printed from the following VB.NET program?

Post by answerhappygod »

Module Module1
Sub Main()
Dim arr() As Integer
arr=New Integer(){1,3,5,7,9} 'initialize arr array
Dim i As Integer
For i=0 to 4 'output arr array
Console.Write("{0}",arr(i)*arr(i) & vbTab)
Next
Console.ReadLine()
End Sub
End Module
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply