Using assignment operators in Dart

Issue void main() { var a=10; var b=2; var toplam=a+=b; var fark=a-=b; var carpim=a*=b; var bolme=a/=b; print("$toplam"); print("$fark"); print("$carpim"); print("$bolme"); } This code gives the following error when splitting: "A value of type ‘double’ can’t be assigned to a variable

Continue reading