Skip to content

Instantly share code, notes, and snippets.

@jkdeveyra
Created June 6, 2013 06:01
Show Gist options
  • Save jkdeveyra/5719619 to your computer and use it in GitHub Desktop.
Save jkdeveyra/5719619 to your computer and use it in GitHub Desktop.
int ans, i;
for (i = 1; i < 6; i++) {
ans = i % 2;
if (ans == 1)
System.out.print(i + 1)
}
int x = 7 + 3 * 6 / 2 - 1;
System.out.println(x);
for (int i = 0; i < 3; i++) {
for (int j = 0; j < i; j++)
System.out.print("*");
System.out.println();
}
for (int i = 0; i < 3; i++);
System.out.println(i);
System.out.println(i == 1);
System.out.println(j == 3);
System.out.println((i >= 1) && (j < 4));
System.out.println((m <= 99) & (k < m));
System.out.println((j >= i) || (k == m));
System.out.println((k+m<j) | (3-j>=k ));
System.out.println(!(k > m));
"This is a Java program"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment