Questions tagged [digits]

Questions dealing with getting, manipulating, or changing the digits of numbers

Use this tag for questions dealing with getting, manipulating, or changing the digits of numbers. More about digits on wikipedia

1098 questions
-8
votes
2 answers

Get the sum of digits in JAVA

I'm trying to code a program where it shows all the possible two digits numbers and shows the sum of those digits. for example: 10 - 1 + 0 = 1 11 - 1 + 1 = 2 12 - 1 + 2 = 3 .. 98 - 9 + 8 = 17 99 - 9 + 9 = 18 I used while loop to get the positive…
GaryM
  • 11
  • 1
  • 5
-8
votes
1 answer

how to assign huge value variable

it is possible to assign that big number in java? i need to make a calculation of 39 digits value. could any help? Thanks Problem: Consider the following composite number: 340282367237851113557325445936183246849 Write a Java method to find two…
1 2 3
73
74