3. How are following two expressions different ? (i) ans = 8 (ii) ans == 8

ans = 8 is an assignment that puts 8 into ans while ans == 8 is a relational operation that checks if ans is equal to 8.