Computer Science, asked by mrudul44, 6 months ago

(a) What is the difference between / and % operator

(b) State the difference between while and do while loop.

(c) Write a difference between unary and binary operator.​

Answers

Answered by yesiamin6
0

Answer:

A) The difference between / and % is

/ is used to do division (arthamatic operation)

Where as % is used to find mod(remainder of division) even this operation comes under arthamatic operators

B) the difference between while loop and do while loop is

While loop will be executed only when the given condition is true

Where as do while loop execute at least one time even is the condition is not true(false) and then checks the condition for further repeating of the loop and in do while we use (;) symbol after the while loop condition

C) Operators that operate on two operands are known as binary operators. Operators that operate on one operand are known as unary operators

Similar questions