Using For Loop, Solve The Following Problems
Using For Loop, Solve The Following Problems
1. Put two textboxes on your form. The first box asks users to enter a start position for a
For Loop; the second textbox asks user to enter an end position for the For loop.
When a button is clicked, the program will add up the numbers between the start
position and the end position. Display the answer in a message box
2. Write a for loop that will iterate from 0 to 20. For each iteration, it will check if the
current number is even or odd, and report that to the screen.
1 is odd
2 is even
3 is odd
.
.
.
20 is even
* Note that the output should be displayed in Listbox.
3. Write VB.NET code to print the following pattern:
1******
12*****
123****
1234***
12345**
123456*
1234567
* Note that the output should be displayed in Listbox.
Each exercise should be printed out in a short bond paper and it will submitted tomorrow,
August 2, 2016. This is prize of forgetting your class schedule.