• Post Reply Bookmark Topic Watch Topic
  • New Topic

new to java languange but my little sister ask me to do her homework  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give the java codes to perform the indicated tasks

1. Declare variables x and y to be of type float
2. Assign the value 10 to variable A.
3. Increase the value of variable X by 2.
4. Double the value assigned to variable X
5. Assign the sum of A and B to variable sum.

Thank you and more power to you guys!!!
 
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nico gecale wrote:Give the java codes

Sorry, but you have come to the wrong place to get other people to do homework for you (or your sister).

If, however, you want help with your homework, then this is the right place. Please post your code and explain what problems you are having with it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!