Computers and Technology, 14.09.2019 06:30, CM0
Write a program in java that consists of a "isprime" method that takes an integer as a parameter and returns a boolean value that indicates whether the parameter is a prime number(i. e. returns true if it is a prime number, false if it is not prime). the method signature should like this: public static boolean isprime(int num)
in your "main" method, prompt the user to input a list of numbers. assume that the input ends with number 0. the main method will make a call to "isprime" for each number to determine whether that number is a prime number. the "main" method will display the results to the user.
here's a sample run of the program:
sample 1:
enter numbers: 173 109 181 138 190 100 193 140 0
Answers: 1
Computers and Technology, 16.07.2019 01:30, manny2275
Answers: 3
Computers and Technology, 26.07.2019 01:20, kaleighlong959
Answers: 2
Computers and Technology, 06.10.2019 01:30, noodleboy0923
Answers: 3
Engineering, 18.10.2019 23:30, Brendah4962
Answers: 2
Write a program in java that consists of a "isprime" method that takes an integer as a parameter and...
Biology, 05.11.2019 20:31
Mathematics, 05.11.2019 20:31