0

Why Var4 is 0. I want to understand. I make this code. Thank you.

Var4= var1 / var2 https://code.sololearn.com/cd8NU5J0hAvN/?ref=app

6th Jul 2020, 7:05 AM
Malick Diagne
Malick Diagne - avatar
3 Réponses
+ 1
Because you haven't set any value to var1, var2, var4
6th Jul 2020, 7:16 AM
Arnesh
Arnesh - avatar
+ 1
Malick Diagne You catched exception because you cannot divide number with 0 value and the default value of var4 is 0. That's why it is 0.
6th Jul 2020, 7:17 AM
A͢J
A͢J - avatar
0
I display var1 and var2?
6th Jul 2020, 7:32 AM
Malick Diagne
Malick Diagne - avatar