0

How do i add 3 static numbers to get their average number?

like for example num1=10 num2=20 num3= 45 =25

22nd Sep 2020, 8:26 AM
Khryss Patrick Estrada
Khryss Patrick Estrada - avatar
2 Antworten
+ 3
Just like regular non static variables.
22nd Sep 2020, 8:38 AM
Aleksandrs
Aleksandrs - avatar
0
just like? int num1= 10; system.out.println("Number 1=10"); int num2= 20; system out.println("Number 2= 20"); int num3= 45 system.out.println("Number 3= 45); ??
22nd Sep 2020, 8:44 AM
Khryss Patrick Estrada
Khryss Patrick Estrada - avatar