File: odd.spl

package info (click to toggle)
javacc5 5.0-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,540 kB
  • sloc: java: 21,302; xml: 2,025; sh: 100; makefile: 18
file content (13 lines) | stat: -rw-r--r-- 111 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
int num;
boolean odd;

num = 10;

read num;

if (num % 2 != 0)
   odd = true;
else
   odd = false;

write odd;