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
icon
Related questions
Question
i need the answer quickly
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
Transcribed Image Text: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
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
C-string
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage