Computer Science, asked by AvashDiyali, 1 month ago

Give the output of the following :

double m= 6.25;

double n= 7.45;

System.out.println(Math.ceil(m));

System.out.println(Math.rint(n));​

Answers

Answered by jeromeseejo73
1

Answer:

double m= 6.25;

double n= 7.45;

System.out.println(Math.ceil(m));// answer is:7.00

System.out.println(Math.rint(n));​/answer is:7.00

Explanation:

Similar questions