|
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
|