From e0ad40b37580e14bc77a0022f838fc236660d35b Mon Sep 17 00:00:00 2001 From: youyeonyou <128577489+youyeonyou@users.noreply.github.com> Date: Tue, 11 Apr 2023 13:23:59 +0900 Subject: [PATCH] Add files via upload --- Homework1.java | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Homework1.java diff --git a/Homework1.java b/Homework1.java new file mode 100644 index 0000000..c22d88a --- /dev/null +++ b/Homework1.java @@ -0,0 +1,34 @@ +import java.util.Scanner; + +public class Homework1 { + public static void main(String[] args) { + + int count; + int[] num; + String[] name; + + Scanner sc = new Scanner(System.in); + System.out.println("자동차의 갯수를 입력하세요"); + count = sc.nextInt(); + num = new int[count]; + name = new String[count]; + + for(int i=0;i