summaryrefslogtreecommitdiffstats
path: root/skripti/IntsToBytes.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--skripti/IntsToBytes.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/skripti/IntsToBytes.java b/skripti/IntsToBytes.java
new file mode 100644
index 0000000..bd701e0
--- /dev/null
+++ b/skripti/IntsToBytes.java
@@ -0,0 +1,14 @@
+import java.util.*;
+public class IntsToBytes {
+ public static void main (String[] args) {
+ Scanner sc = new Scanner(System.in);
+ while (true) {
+ try {
+ System.out.write(sc.nextInt());
+ } catch (NoSuchElementException e) {
+ System.out.flush();
+ System.exit(0);
+ }
+ }
+ }
+}