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)

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?

Quite Quote

QUICK QUOTE

Approximately 250 words

custom essy

Order an essay from experts and get an A+

Address: 679 Dola Mine Road Raleigh
Email: support@academic-research-pro.com
Website: www.academic-research-pro.com
Toll Free: +1800-672-9816

Disclaimer

All Papers produced are meant for reference purposes only. Academic Research Pro does not give the consent and authority to copy and reproduce the papers.

Terms and Conditions | Privacy Policy 

Banner of payment methods of cheap essay writing service