x = 0 For i = 1 To 10 Step 2 x = x + 1

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter4: Making Decisions
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
I need the answer as soon as possible
Find the value of X after executing this program
x = 0
For i = 1 To 10 Step 2
X = x + 1
Next i
Your answer
Write the value of K and Y after executing the following program
Private Sub Command1_Click )
Dim X,K.Y as Integer
K=0
Y=0
For X 64 to 80 step 2
K = K+X
Next X
Text1. Text "K"
For X- 63 to 80 step?
Visual
Y=Y+X
Next X
Text2. Text - "Y"
End Sub
Your answer
Find the value of X after executing this program
x = 0
For i = 0 To 4
For j = 0 To į+1
x = x + (i+j+ 1)
Next j
Next i
Transcribed Image Text:Find the value of X after executing this program x = 0 For i = 1 To 10 Step 2 X = x + 1 Next i Your answer Write the value of K and Y after executing the following program Private Sub Command1_Click ) Dim X,K.Y as Integer K=0 Y=0 For X 64 to 80 step 2 K = K+X Next X Text1. Text "K" For X- 63 to 80 step? Visual Y=Y+X Next X Text2. Text - "Y" End Sub Your answer Find the value of X after executing this program x = 0 For i = 0 To 4 For j = 0 To į+1 x = x + (i+j+ 1) Next j Next i
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
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 Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage