File: odd.spl

package info (click to toggle)
javacc 3.2%2B0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,408 kB
  • ctags: 1,462
  • sloc: java: 15,927; xml: 233; makefile: 53; sh: 25
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;