Which of the following will output a random number with values only from 0 to 10 ?
(a) System.out.println(Math.round(Math.random()* 0));
(b) System.out.println(Math.round(Math.random() % 10));
(c) System.out.println(Math.random() *10);
(d) None of the above
Answers
Answered by
3
Explanation:
none of the Above... ...
Answered by
1
Answer:
answer is option d
Explanation:
none of the above
Similar questions
Physics,
2 months ago
Social Sciences,
5 months ago
Computer Science,
5 months ago
Chemistry,
11 months ago
Physics,
11 months ago