Please describe the output of the following program!
after executing this program,i got value of h as 1.
public static void main(String p)
next, executing the part which is in comments gave me 1.0
after m/y operation, the output value is a literal which is either a double or int. but my output is coming both times. so what is the value of m/y?? int or float??
Re: Please describe the output of the following program!
The code is using integer division so 4/3 = 1 and 2/4 = 0.