정올 170번 자바1 [정올/JAVA] 170번 함수1 - 형성평가1 ‘@’문자를 10개 출력하는 함수를 작성 한 후 함수를 세 번 호출하여 아래와 같이 출력하는 프로그램을 작성하시오. 공부하시는대에 도움이 됐으면 좋겠습니다. 답안코드 확인해주세요! 더보기 import java.util.Scanner; public class Main { public static void call() { System.out.println("@@@@@@@@@@"); } public static void main(String args[]) { Scanner in = new Scanner(System.in); int input1 = in.nextInt(); System.out.println("first"); call(); System.out.println("second"); call(); System.out.println("third"); call(); } } 2020. 7. 24. 이전 1 다음