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
What are the steps involved to create a bean?
What data structures are used to perform recursion?
What is the use of 'super' keyword inside a constructor?
What is method in research paper?
how many types of Inheritance?
What is skeleton and stub?
who can i handle multiple client in RMI
How many ways can we create singleton class?
Tell us something about different types of casting?
What is difference between word and integer?
What is the diffrence between inner class and nested class?
How does linkedhashmap work in java?
State the main difference between c++ and java?
Is singleton thread safe in java?
Which software is used for java programming?