Answer Posted / sadikhasan palsaniya
int no=687;
int sum=0;
int temp;
while(no>0)
{
temp = no % 10;
sum += temp;
no = no/10;
}
System.out.println(sum);
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Explain hashset and its features?
What is qms certification?
What are use cases?
Does java vector allow null?
How do you sort in java?
How is Object Oriented Programming different from Procedure Oriented Programming?
What is the use of isempty in java?
Is array dynamic in java?
Is node a data type in java?
How many types of flags are there?
Can java cast null?
What is the list interface?
How can I debug the Java security exceptions and AccessControlExceptions?
Write an algorithm for quick sort?
What are the main features of java?