Computer Science, asked by KaynatAzraNaushin, 9 months ago

(ii) Priyanka wrote the statement "if (a=0)" but is not
comparing. Suggest her how to solve the problem.​

Answers

Answered by tdettling
3

Answer:

if( a==0)

Explanation:

Because Priyanka is trying to compare a (assuming it's an integer) to 0, she must use two equal signs. Otherwise the syntax (spelling/grammar of coding) will throw an error.

Answered by prasadanxian
1

Answer:

if(a==0)

Explanation:

This is the correct statement

Because if is a condition so we can't assign values in this.

Similar questions