Sunday, July 28, 2013

Loop Exercise #1






TARGET 1: 
If you input any character at Username, then if you press Button1, what you write on Username will insert on ListBox1 20 times.

EX:
Username: deythedevil

ListBox1: 
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil
deythedevil


TARGET 2:
Enter any number on TextBox2, if you press button2, ListBox2 should List all the possible EVEN numbers
until it reached the number you input on Textbox2. Then, on TextBox3 should write the Sum of all the numbers on ListBox2.

EX:

Enter a number: 13
ListBox2:
2
4
6
8
10
12

Sum of All Numbers:
42

--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
The Answer is below
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------












No comments:

Post a Comment