The Artima Developer Community
Sponsored Link

Java Answers Forum
Maths codes

1 reply on 1 page. Most recent reply: Mar 23, 2003 8:41 PM by Jaded

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Just

Posts: 6
Nickname: rusty
Registered: Mar, 2003

Maths codes Posted: Mar 23, 2003 7:41 PM
Reply to this message Reply
Advertisement
I can?t divide my answer on the last line of code.
This is my last line,


System.out.println("Average points scored per game = " + (Ram1 + Ram2 + Ram3 /3) );

Why won?t it divide by 3?


Jaded

Posts: 2
Nickname: jaded
Registered: Mar, 2003

Re: Maths codes Posted: Mar 23, 2003 8:41 PM
Reply to this message Reply
System.out.println("Average points scored per game = " + ((Ram1 + Ram2 + Ram3) /3) );

Flat View: This topic has 1 reply on 1 page
Topic: String Comparison Previous Topic   Next Topic Topic: Launch Java App from Windows Desktop

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use