How to Find the sum of 2 numbers?
Last Updated :
17 Aug, 2021
Numerical values are required to count and perform mathematical operations. The numerical value is represented by numbers which can also be represented alphabetically. For example, we can write a number like 22 or this can be represented using alphabets twenty-two. One more example is 3 and this can be represented as three.
There are many types of numbers. Odd and even, fraction and integer, Rational and irrational, natural and whole, and many more examples. Some of the operations are algebra, trigonometry, arithmetic, and many more.
The number is a representation of the quantity or numerical value used for calculations. For example 0,1,2...
Arithmetic
It is the operation between numbers, basic types of operations for real numbers are addition, multiplication, subtraction, and division.
The basic properties of arithmetic are the commutative, associative, and distributive properties.
Operations on Numbers
Addition (+): This operation is used to add the inputs to get the output. For example when 2 is added to 3 the resultant will be equal to the sum of both the numbers which is equal to 5, (2 + 3 = 5).
Multiplication (×): This operation is used to get the product of inputs to get the result. For example when 2 is multiplied by 3 the resultant will be equal to the product of both the numbers which is equal to 6, (2 × 3 = 6).
Subtraction (-): This operation is used to subtract the inputs to get the result. For example when 3 is subtracted by 2 the resultant will be equal to the difference of both the numbers which is equal to 1 (3 - 2 = 1).
Division (÷): This operation is used to divide the first input by the second input to get the result. For example when 6 is divided by 2 the resultant will be equal to the quotient of both the numbers which is equal to 3 (6 ÷ 2 = 3).
Properties of Addition
Commutative Property
The commutative property states that the order of the numbers used does not affect the result. Addition and multiplication are commutative operations:
4 + 5 = 5 + 4 = 9 (commutative)
4 × 5 = 5 × 4 = 20 (commutative)
Associative Property
The associative property states that the grouping of the numbers used does not affect the result. Addition and multiplication are associative operations:
4 + (5 + 6) = (4 + 5) + 6 (Associative).
4 × (5 × 6) = (4 × 5) × 6 (Associative).
Subtraction and division are neither commutative nor associative.
How to Find the sum of 2 numbers?
The sum is an Arithmetic operation that results in the addition of 2 values to get the final value.
Let the first number be X and the second be Y.
Adding X and Y, we get the resultant as,
X + Y = Z.
Here, Z is the result of the sum of X and Y.
Let the value of X is 5,
and the value of Y is 4.
Then using the above equation,
X + Y = Z.
Substituting the value of X as 5 and Y as 4, we get.
5 + 4 = Z.
Therefore, Z is equal to 9.
5 + 4 = 9.
The sum of 2 numbers is the result of the addition of the value of both the numbers.
Similar Questions
Question 1. What is the sum of 12 and 8?
Answer:
Let the first number be X and the second be Y.
Adding X and Y, we get the resultant as,
X + Y = Z.
Here, Z is the result of the sum of X and Y.
The value of X is 12,
The value of Y is 8.
Then using the above equation,
X + Y = Z.
Substituting the value of X as 12 and Y as 8, we get.
12 + 8 = Z,
Therefore, Z is equal to 20.
12 + 8 = 20.
Question 2. What is the sum of 5 and 6?
Answer:
Let the first number be X and the second be Y.
Adding X and Y, we get the resultant as,
X + Y = Z.
Here, Z is the result of the product of X and Y.
Let the value of X is 5,
and the value of Y is 6.
Then using the above equation,
X + Y = Z.
Substituting the value of X as 5 and Y as 6, we get.
5 + 6 = Z.
Therefore, Z is equal to 11.
5 + 6 = 11.
Hence, the sum is 11.
Similar Reads
Find the sum of first 8 odd numbers
The method to represent and work with numbers is known as number system. A number system is a system of writing to represent numbers. It is the mathematical notation used to represent numbers of a given set by using digits or other symbols. It allows us to operate arithmetic operations such as divis
5 min read
How to find Sum the Digits of a given Number in PHP ?
We will explore how to find the sum of the digits of a given number in PHP. This task involves extracting each digit from the number and adding them together to get the final sum. Table of Content Using a loop to extract digits one by oneUsing mathematical operations to extract digitsUsing a loop to
2 min read
Find the sum of the first 80 natural numbers
Numerals are the mathematical figures used in financial, professional as well as a social field in the social world. The digits and place value in the number and the base of the number system determine the value of a number. Numbers are used in various mathematical operations such as summation, subt
6 min read
Sum of two numbers modulo M
Given three numbers A, B, and M. The task is to print the sum of A and B under modulo M. Examples: Input: a = 10, b = 20, m = 3 Output: 0Explanation: (10 + 20) % 3 = 30 % 3 = 0 Input: a = 100, b = 13, m = 107 Output: 6 Approach: To solve the problem follow the below idea: Add the two given numbers A
3 min read
How to Find the Sum of an Array of Numbers in JavaScript ?
To find the sum of an array of numbers in JavaScript, you can use several different methods.1. Using Array reduce() MethodThe array reduce() method can be used to find the sum of array. It executes the provided code for all the elements and returns a single output.Syntaxarr.reduce( callback( acc, el
2 min read
Find the Sum of First 60 Natural Numbers
The sum of the first 60 natural numbers can be found using the formula for the sum of an arithmetic series. The formula to find the sum of an arithmetic series is given as: Sum(S) = nâ/2 Ã (2a+ (n â1) d) Where: n is the number of terms (in this case, 60).a is the first term (1 in the case of natural
1 min read
Find the sum of first 50 natural numbers
Answer: The sum of the first n natural numbers is given by the formula Sn = n(n+1)/2. Sum of first 50 natural numbers S50 = 50(51)/2 = 1275Similar Problems:Question 1: What is the difference between twenty and ten natural numbers?Solution:Lets first calculate the sum of the first of ten natural numb
2 min read
What is the sum of first 50 even numbers?
Arithmetic is a part of mathematics that works with different types of numbers, fractions, applied different operations on numbers like addition, multiplication, etc. The word Arithmetic comes from the Greek word arithmos, which means number. Also Arithmetic involves exponentiation, the calculation
7 min read
How to find the mean of a dataset?
Answer: Mean of a dataset is calculated using the formula:Mean = Sum of All Values / Total Number of ValuesMean is a concept in mathematics that is used to find the average collection of numbers. Mean is also known as the expected value. In general, mean refers to the addition of the largest value a
5 min read
How to add positive and negative numbers?
Algebra is a special branch of mathematics that is used to deal with the arithmetic operations, such as addition, subtraction, multiplication, or division, and the associated symbols, also known as variables. The variables are not fixed and change their value. Some of the examples of variables are x
4 min read