기초4-1.단순 반복문(for)
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int a = t.nextInt();
// int b = t.nextInt();
//
// for(int i=a;i<=b;i++) {
// if(i %2 !=0) {
// System.out.print(i+" ");
// }
// }
// }
//} //1257 : 두 수 사이의 홀수 출력하기
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int a = t.nextInt();
// int b = t.nextInt();
// int sum = 0;
//
// for(int i = a; i <= b; i++) {
// if(i %3 == 0) {
// sum += i;
//
// }
// }
// System.out.print(sum);
// }
//} //1260 : 3의 배수의 합
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int n = t.nextInt();
// int sum = 0;
//
// for (int i = 1; i <= n; i++) {
// int m = t.nextInt();
// sum += m;
// }
// System.out.println(sum);
// }
//} //1266 : n개의 수의 합
//import java.util.Scanner;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int n = t.nextInt();
// int max = 0;
//
// for (int i = 1; i <= n; i++) {
// int m = t.nextInt();
// if (max < m) {
// max = m;
// }
// }
// System.out.println(max);
// }
//} //1271 : 최댓값 구하기
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int n = t.nextInt();
//
// for(int i = 1; i <= n; i++) {
// if((n%i)==0) {
// System.out.print(i + " ");
// }
//
// }
// }
//} //1273 : 약수 구하기
//import java.util.Scanner;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int p = t.nextInt();
// boolean flag = false;
//
// for(int i = 2; i < p; i++) {
// if(p%i == 0) {
// flag=true; //not prime
// break;
// }
// }
//
// if(flag) {
// System.out.println("not prime");
// }
// else {
// System.out.println("prime");
// }
//
// }
//} //1274 : 소수 판별 https://elukasoul.tistory.com/8
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
//
// Scanner t = new Scanner(System.in);
//
// int n = t.nextInt();
// int k = t.nextInt();
// int res = 1; //어떤 수의 0승이 1임으로 1로 초기화
//
// for(int i = 0; i < k; i++) {
// res*= n;
// }
// System.out.println(res);
// }
//
//} //1275 : k 제곱 구하기