Computer Science, asked by vadheranandi, 3 days ago

Are the following statements same ? If no what is the difference between them n=5 n ==5

Answers

Answered by sailtarge
0

Answer:

yes

Explanation:

no difference in 1 or 2 equal

to

Answered by sugarcloud
1

Answer:

No, as n=5 gives value to the variable n.

Meanwhile, n==5 is used to check whether the value of the variable is the one given on the other side or not. It gives the answer is true/false.

Look at their outputs in the attachment for better understanding.

Attachments:
Similar questions