Q3) what are the values will be printed by the following? 1. For i As Integer 4 To 15 If (i Mod 2 = 0) Then sum sum + i Next TextBox1.Text = sum 2. Dim sum As Integer = 0 For i As Integer = 15 To 10 If (i < 0) Then sum = sum- i Next TextBox1.Text = sum
Q3) what are the values will be printed by the following? 1. For i As Integer 4 To 15 If (i Mod 2 = 0) Then sum sum + i Next TextBox1.Text = sum 2. Dim sum As Integer = 0 For i As Integer = 15 To 10 If (i < 0) Then sum = sum- i Next TextBox1.Text = sum
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter3: Coding With Variables, Named Constants, And Calculations
Section: Chapter Questions
Problem 2MQ4
Related questions
Question
i need the answer quickly
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage