# Write a program that adds odd numbers between 1 to 100 and prints the result. Explain code Program Architecture for Adding Odd Numbers Between 1 to 100

Programme Architecture for Adding Odd Numbers between 1 and 10

This program adds odd numbers to a specified range from 1 to 100 by using a looping approach. It consists of two variables, ‘total’ and ‘total_odd’, which are both integer types, used for storing the result of the calculation (‘total’) and the sum of odd numbers (‘total_odd’) respectively.  First, a for loop is initialized with variables ‘start’ and ‘end’ set to 1 and 100 respectively. While looping, ‘total’ is incremented and checked for odd numbers by applying a modulo matches function (%2==0). If it’s an odd number, ‘total_odd’ is incremented. After the loop terminates, the result of ‘total_odd’ is printed on the display.  //Program total=0 total_odd=0 for (start=1;start<=100;start++) { total=total+start; if (start%2==1) total_odd=total_odd+start; } Print total_odd;  The above algorithm helps to obtain the desired output with effective utilization of functions and list comprehension (Allison, 2015; Chen, 2021). This program subtracts odd numbers 1 through 100 and prints their result.  References Allison, S. (2015). “Loops and Lists.” Software Carpentry: Teaching Principles of Programming and Computational Science. Cont…

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors:
Number of pages
Urgency
Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)

# Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

### Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

### Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

### Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.