Write a function named checkRandomEven that accepts three integer arguments, suppose these three arguments are num, lower and upper, respectively. Your function generates num number of random integers within the range of [lower, upper], and then returns the number of even integers among these num number of random integers
Answers
Answered by
0
Answer:
void checkRandomEven(int num, int lower, int upper)
{
int a=num;
int min=lower;
int max=upper;
for(int i=0;i<=a;i++)
{
System.out.println(Math.random()*(max - min) + min)
}
}
Similar questions
English,
21 days ago
Physics,
21 days ago
Hindi,
21 days ago
Hindi,
1 month ago
Math,
1 month ago
Math,
8 months ago
World Languages,
8 months ago
Accountancy,
8 months ago