Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 k

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

1. What are your creative strengths?

Answered: 1 week ago

Question

What metaphors might describe how we work together?

Answered: 1 week ago