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) – Studypool

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

I’m trying to study for my C Programming course and I need some help to understand this question.

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?

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) – Studypool

"Looking for a Similar Assignment? Order now and Get a Discount!