From 5b0f4aa468645f92aab9241db19edfb84cec010a Mon Sep 17 00:00:00 2001 From: Wilfried OLLIVIER Date: Sat, 22 Nov 2014 22:11:41 +0100 Subject: [PATCH] =?UTF-8?q?add=20solution=20for=20nbcontest,=20progra,=20n?= =?UTF-8?q?=C2=B05?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- newbiecontest/prog/jazz/Prog12.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 newbiecontest/prog/jazz/Prog12.java diff --git a/newbiecontest/prog/jazz/Prog12.java b/newbiecontest/prog/jazz/Prog12.java new file mode 100644 index 0000000..6d50ffb --- /dev/null +++ b/newbiecontest/prog/jazz/Prog12.java @@ -0,0 +1,15 @@ +public class Prog12 { + public static void main(String[] args) { + int i = 0; + for (int k = 0; k <= 128 ; k++) { + i = k*k + 17; + } + System.out.println(" i : " + i); + String str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + StringBuffer buffer = new StringBuffer(); + for (int k = 0;k