Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if num=687;
U have to get
num=6+8+7;

Answer Posted / asit purohit

int num=5672;
int sum=0;
while(num%10!=0)
{
sum=sum+num%10;
num=num/10;
}
System.out.println("sum="+sum);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string is a data type?

904


If a class is declared without any access modifiers, where can the class be accessed?

1007


What is a container in a gui?

932


What is jit compiler in java?

1027


Under what conditions is an object’s finalize() method invoked by the garbage collector?

978


What exactly is java?

886


Can java hashmap have duplicate keys?

958


How do you join strings in java?

980


Can we define a package statement after the import statement in java?

1018


Can a constructor be protected?

1029


What is the basic of java?

972


Is ruby built on java?

897


What are JVM.JRE, J2EE, JNI?

1056


Can we force garbage collector to run ?

1000


Explain the difference between association, aggregation and inheritance relationships.

1026