hi can you give an example on how I can put the values of the two arrays in one loop?
thank you so much, I'm so sorry for the inconvenience
--- Update ---
oh nevermind, I already got it,...
Type: Posts; User: winwin
hi can you give an example on how I can put the values of the two arrays in one loop?
thank you so much, I'm so sorry for the inconvenience
--- Update ---
oh nevermind, I already got it,...
Should I declare i and j outside of the loop ?
I wanted to print the values from the loops in the last statement with errors.
I have to make a program using a one-dimensional array that accepts as input an integer value asking for the number of elements for each list. This will be used to generate random numbers (10-99) for...
Proper divisors of a number is its factors other than itself.
The program should compute the sum first in order to identify whether the number is perfect, deficient or abundant.
Can you point...
The integer is perfect if the sum of its positive proper divisors is equal to the number itself.
If this sum is less than the integer, the numbers is deficient.
If the sum is greater than the...
I need to make a java program that will read an input positive integer and then checks if it is a perfect, deficient or abundant number using the for-loop.
for example: 6 is a perfect number since...
/*A positive, non-zero integer, N, is said to be perfect if the sum of its positive proper divisors is equal to the number itself. If this sum is less than N, the numbers is said to be deficient. If...