입력받은 수의 구구단 출력하기

Scanner sc = new Scanner (System.in);
		System.out.println("숫자입력");
		int num = sc.nextInt();
		
		for(int i = 1 ; i <= 9; i++) { //for(정의;조건식;증감식)
			System.out.printf("%dx%d=%d\t", num, i, num*i);
		}//\t=띄어쓰기
		sc.close();