EDP Exercise 1
EDP Exercise 1
Exercise 1
//Exercise 1.
//Ask user for start and end.
// Determine whether starts is greater than or less than the end
// IF the start and end is equal, provide output that they can't be equal
// Use decrement and increment accordingly
// Output the Current Index of the for loop
// Can be done in either Windows Forms or Console Program (+5 point if you can do)
{
int start = Convert.ToInt32(txtStart.Text);
int end = Convert.ToInt32(txtEnd.Text);
int index = 0;
bool error = false;
string message = "";