Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the value of 'money'!!!

 
Karthika Vanappandian
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Consider the code snippet..
---------------------------------------------------
int money=0;
for(int i = 0;i<100;i++)
{
money = money++;
}
System.out.println("The value of money is "+money);
---------------------------------------------------
Can someone tell me the value of money in the above code by ellaborating the loop execution..?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic