java - How do I find all numbers between 2 integers that are divisble by a third integer? -


I need to take three integers from the user, and the number between the two (startInt and endInt) which are divisible third From integer (modulus), then print all the aliquot numbers in jTextField. I'm sure there is a simple solution that I'm missing, but I can not understand what I'm doing for my life.

Here is my code:

  Private zero goButtonActionPerformed (java.awt.event.ActionEvent evt) {int startInt, endInt, modulus; StartInt = integer Parasource (startTextField.getText ()); EndInt = integer PRIIENT (EndtextField.Gettext ()); Modulus = integer Parasont (modulusTextField.getText ()); Int intDistance = endInt - startInt; (Int loop quarter, louf quarters & lt; = intDistance; loop quarters ++) {}} 

All matches for this i will meet strictly between startInt and endInt, which are divisible by the modulus.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -