(ii) Priyanka wrote the statement "if (a=0)" but is not
comparing. Suggest her how to solve the problem.
Answers
Answered by
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
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
Math,
5 months ago
Social Sciences,
10 months ago