0
need help #java
how to get sum of digits using loop ...??
1 Answer
0
int digit = 0;
for (int i = 0; i <= 10; i++) {
digit += i;
}
// digit = 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes