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)

Question Description

Write a Visual Logic program that prompts the user for a whole number, N, that is less than or equal 50and greater than 0. If the user enters an invalid number end the program. Output the summation of theodd numbers from 1 to N (if N is odd or N-1 if N is even. For example, if the user enters 15, the outputshould 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?

Get your college paper done by experts

Do my question How much will it cost?

Place an order in 3 easy steps. Takes less than 5 mins.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *