summaryrefslogtreecommitdiffstats
path: root/šola/p1/vaje/2023-10-19/Kvadrati.java
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-10-19 13:07:47 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-10-19 13:07:47 +0200
commit8cebce442f6fe64aa09e4e74837a8e48b8215540 (patch)
tree6e6c8711eaa27fa85a141c91dd0e995e19db0e72 /šola/p1/vaje/2023-10-19/Kvadrati.java
parentstudisfri (diff)
downloadr-8cebce442f6fe64aa09e4e74837a8e48b8215540.tar
r-8cebce442f6fe64aa09e4e74837a8e48b8215540.tar.gz
r-8cebce442f6fe64aa09e4e74837a8e48b8215540.tar.bz2
r-8cebce442f6fe64aa09e4e74837a8e48b8215540.tar.lz
r-8cebce442f6fe64aa09e4e74837a8e48b8215540.tar.xz
r-8cebce442f6fe64aa09e4e74837a8e48b8215540.tar.zst
r-8cebce442f6fe64aa09e4e74837a8e48b8215540.zip
Diffstat (limited to 'šola/p1/vaje/2023-10-19/Kvadrati.java')
-rw-r--r--šola/p1/vaje/2023-10-19/Kvadrati.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/šola/p1/vaje/2023-10-19/Kvadrati.java b/šola/p1/vaje/2023-10-19/Kvadrati.java
new file mode 100644
index 0000000..53d3177
--- /dev/null
+++ b/šola/p1/vaje/2023-10-19/Kvadrati.java
@@ -0,0 +1,10 @@
+import java.util.*;
+public class Kvadrati {
+ public static void main (String[] args) {
+ Scanner sc = new Scanner(System.in);
+ int a = sc.nextInt();
+ int b = sc.nextInt();
+ for (int i = a; i <= b; i++)
+ System.out.println(i*i);
+ }
+}