Skip to content

Instantly share code, notes, and snippets.

public class Counter {
public static void main(String[] args) {
int countFrom = 100;
int subBy = 1;
int iteration = 0;
int i = 0;
while (countFrom >= 0) {
if ((i + 1) % 10 == 0) {
iteration += 1;
count_from = 100
sub_by = 1
iteration = 0
i = 0
while (count_from >= 0):
if ((i+1) % 10 == 0):
iteration += 1
print(count_from)
count_from = (count_from - (sub_by + iteration))

Keybase proof

I hereby claim:

  • I am m-stafford on github.
  • I am stafford (https://keybase.io/stafford) on keybase.
  • I have a public key whose fingerprint is D301 4C27 BD3B 8CCA 2DC8 306A A271 D8E0 0E7E 4E42

To claim this, I am signing this object: