View Single Post
Old 11-26-2010, 02:19 PM   PM User | #1
Beck7223
New to the CF scene

 
Join Date: Nov 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Beck7223 is an unknown quantity at this point
Creating loops in Java

I am a java beginner and would like some help on creating loops


the mark is between 0 and 100 and loses 5 marks each day it is late
if it drops below 20 no marks are deducted and if the original mark was 20 or less it stays at the original mark

m= mark
d = days

so far i have

for ( int m=100 ; m <=100 ; m -=5 )
system.out.println ( " mark is " m)


i have no idea if this is right or how to incorporate the days into the loop
Beck7223 is offline   Reply With Quote