Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in VB, what could i add to this could that would output to a third textbox that would take the elements from the Textbox2 and
in VB, what could i add to this could that would output to a third textbox that would take the elements from the Textbox2 and classify them as either odd type ( factors with odd number of elements eg: 5, 3, 3 - 3 elements) or even type ( factors with even number of elements : 2, 7 - 2 elements).
Thanks
ublic Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.click Dim n As Long Dim i As Long Dim k As Long Dim count As Long Dim Prime As Boolean n = TextBox1.Text For i = 2 Ton If n Mod i = 0 Then k = 2 Prime = False While kStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started