Differentiate a)= and == b) / and %
Answers
Answered by
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
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
English,
5 months ago
Math,
5 months ago
Sociology,
10 months ago
Social Sciences,
1 year ago
Math,
1 year ago