+ 2
Operators and operands
What is the difference between an operand and an operator?
3 Respostas
+ 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!
+ 1
You are right Jan congrats
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.