Guest User

Untitled

a guest
Feb 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public class NumberMagnitude {
  2.  
  3. public static void main(String[] args) {
  4. int value = 17;
  5. int k = value;
  6. int magnitude = 2;
  7. while(true) {
  8. k=(k/magnitude);
  9. (k<=1) { break; }
  10. magnitude++;
  11. }
  12. System.out.println("The magnitude of " + k + " equals " + magnitude);
  13. }
  14.  
  15. }
Add Comment
Please, Sign In to add comment