Computer Science, asked by akshayjayakandhan11, 7 months ago

Differentiate a)= and == b) / and %

Answers

Answered by Aadityanair2412
3

Answer:

% is used to find the remainder of 2 numbers like 4%2= 0

== is used to give a value to a variable which will remain constant example a==4

= is used to specify a value to a variable which is not constant and will change

example a=4;a>=n; a++

this will increment the value making it 4 then 5 then 6

HOPE IT HELPS!!!!

Answered by athirai23
1

Answer:

=is an assignment operator

this helps to assign a value to a variable

ex:a=5

==is an shorthand operator

this helps to do arithmetical operation

Explanation:

/ is used to do division it gives answer as quotient of the sum

modulus symbol used to do division in which it gives answer as reminder of the sum

ex:10/5=2

10modulus 5=0

Similar questions