csc202 Create a visual logic program that outputs the summation of odd numbers from 1 to the number the user input or n(see question details)

csc202 Create a visual logic program that outputs the summation of odd numbers from 1 to the number the user input or n(see question details)

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.)

So far i have gottten the number to print out for what ever number the user input, for example if the user inouts 12 the numbers 1-12 show up in the console. Can you please show the chart in visual logic after you’ve come to an answer?

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper