+ 2

Operators and operands

What is the difference between an operand and an operator?

19th Feb 2018, 5:56 PM
Jared momanyi
Jared momanyi - avatar
3 Answers
+ 3
An operator is an operation being used to change or test the value of something. For example, + would be considered an addition operator as whenever it is used, it performs the addition of two or more numbers. An operand is something that is being affected by the operator, or any of the two numbers either before or after the operator. They are usually the data types within an equation, such as an int or string. For example: 5 + 3 In the example, 5 and 3 are the operands as they are data types having something done to them (being added together). The + would be the operator as it is what is affecting or changing the two operands, resulting in the addition of them. Hope this helped!
19th Feb 2018, 6:03 PM
Faisal
Faisal - avatar
+ 1
You are right Jan congrats
19th Feb 2018, 6:03 PM
Jared momanyi
Jared momanyi - avatar
0
How can I create a pseudocode of a program that can be used in a shop to calculate value of items bought and display the change given to a customer assume the customer buys 2 items.
19th Feb 2018, 6:09 PM
Jared momanyi
Jared momanyi - avatar