Write a Visual Logic program that prompts the user for a whole number, N, that is less than or equal 50 and greater than 0. If the user enters an invalid number end the program. Output the summation of the odd numbers from 1 to N (if N is odd or N-1 if N is even. For example, if the user enters 15, the output should be 64 (1+3+5+7+9+11+13+15.) If the user entered 12, the output should be 36 (1+3+5+7+9+11.)
Sample Solution