Question

In: Math

Sum of numbers between 1 and 10

Calculate the values from the  smallest number to the largest number

Solutions

Expert Solution

Add 2 to 1 that becomes 3

Add 3 to 3 that becomes 6

Add 4 to 6 that becomes 10

Add 5 to 10 that becomes 15

Add 6 to 15 that becomes 21

Add 7 to 21 that becomes 28

Add 8 to 28 that becomes 36

Add 9 to 36 that becomes 45

Add 10 to 45 that becomes 55


1+2+3+4+5+6+7+8+9+10 = 55

Related Solutions

create two random numbers between 1 and 6. if when the sum of two numbers are...
create two random numbers between 1 and 6. if when the sum of two numbers are added togethere their sum is less than 5 or greater than 12, output to the console: "you win". if is not, output "you lose" C++
Q2: The following code is supposed to return the sum of the numbers between 1 and...
Q2: The following code is supposed to return the sum of the numbers between 1 and n inclusive, for positive n. An analysis of the code using our "Three Question" approach reveals that: int sum(int n){ if (n == 1)     return 1; else     return (n + sum(n - 1)); } Answer Choices: it passes on all three questions and is a valid algorithm.     it fails the smaller-caller question.     it fails the base-case question.     it fails...
Input 10 integers and display the following: a. the sum of even numbers. b. the sum...
Input 10 integers and display the following: a. the sum of even numbers. b. the sum of odd numbers. c. the largest integer d. the smallest integer e. the total count of even numbers f. the total count of odd numbers. Using C++ program with for loop..
Write a program in C++ that computes the sum of odd numbers between 1 and 117....
Write a program in C++ that computes the sum of odd numbers between 1 and 117. Execute the program and submit a screen capture of the program and its results.
QUESTION 23   What is the sum of numbers between 1 and 20? 210 250 neither A...
QUESTION 23   What is the sum of numbers between 1 and 20? 210 250 neither A or B QUESTION 24 What is 8 to the 3th power? 192 384 QUESTION 25 What is the 4th root of 765 (rounded)? 5.3 7.1 1) In the United States the foreign currency market would not be considered financial market. True False
The Sum and The Average In C++, Write a program that reads in 10 integer numbers....
The Sum and The Average In C++, Write a program that reads in 10 integer numbers. Your program should do the following things: Use a Do statement Determine the number positive or negative Count the numbers of positive numbers, and negative Outputs the sum of: all the numbers greater than zero all the numbers less than zero (which will be a negative number or zero) all the numbers Calculate the average of all the numbers. The user enters the ten...
Write a program in java which store 10 numbers and find the sum of odd and...
Write a program in java which store 10 numbers and find the sum of odd and even numbers. Create a program that uses a two dimensional array that can store integer values inside. (Just create an array with your own defined rows and columns). Make a method called Square, which gets each of the value inside the array and squares it. Make another method called ShowNumbers which shows the squared numbers. Write a program in java which has an array...
Write a program in java which store 10 numbers and find the sum of odd and...
Write a program in java which store 10 numbers and find the sum of odd and even numbers. Create a program that uses a two dimensional array that can store integer values inside. (Just create an array with your own defined rows and columns). Make a method called Square, which gets each of the value inside the array and squares it. Make another method called ShowNumbers which shows the squared numbers.
Write a loop for each of the following: The sum of all even numbers between 2...
Write a loop for each of the following: The sum of all even numbers between 2 and 100 (inclusive). The sum of all squares between 1 and 100 (inclusive). (If you use the pow function the first parameter must be a float or double). The sum of all odd numbers between a and b (inclusive). Where a and b are read in by the user. How often do the following loops execute? Assume that i is not changed in the...
Write assembly instructions that compute the following: The sum of all even numbers between 2 and...
Write assembly instructions that compute the following: The sum of all even numbers between 2 and 100 (inclusive) -- the answer should be 2550 Prompt the user for 2 values, put them in variables a and b, then find the sum of all odd numbers between a and b. The sum of all the squares between 1 and 100 (inclusive) . -- the answer should be 338350 All of the statements above should print the answers using print_int MUST BE...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT