Rikus
09-14-2006, 11:02 AM
ok so im doing java programming at school and im as of today totally clueless.:(
before i even begin, i just want u all to know im no idiot im just starting with java.
anyway
i need to write a little programme to add up all numbers from 10 to 20 using "for" (ps. i have no idea what it's called in, my home language it's for- lus, i dont know what the "lus" part is in english) this is how the for- looks when used:
for ( int i = 10; i<=20; i = whatever)
i just used the numbers 10 and 20 for numbers to show you what i need to do.
Just to clarify a few thing i want to: 10 + 11 + 12 + 13 + 14...... up until 20.
please help asap
before i even begin, i just want u all to know im no idiot im just starting with java.
anyway
i need to write a little programme to add up all numbers from 10 to 20 using "for" (ps. i have no idea what it's called in, my home language it's for- lus, i dont know what the "lus" part is in english) this is how the for- looks when used:
for ( int i = 10; i<=20; i = whatever)
i just used the numbers 10 and 20 for numbers to show you what i need to do.
Just to clarify a few thing i want to: 10 + 11 + 12 + 13 + 14...... up until 20.
please help asap