Question: Explain the difference between n/2 and n/2.0. 1 public class Ex4 f 2 public static void main(String [] args) int n 29; System.out.println(n/2+, + 4
Explain the difference between n/2 and n/2.0.
1 public class Ex4 f 2 public static void main(String [] args) int n 29; System.out.println(n/2+", "+ 4 n/2.0+", "+n % 9+ ", "+ Math . pow(n,2)); 7 8 Explain the difference between n/2 and n/2.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
