This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include<stdio.h> | |
| int main(){ | |
| return 0; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include<iostream> | |
| int main(){ | |
| for(int i = 1; i<=9; i++){ | |
| for(int j = 1; j<=9; j++){ | |
| cout<<i<<*<<j<<"="<<i*j<<endl; | |
| } | |
| cout<<endl; | |
| } | |
| return 0; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| 김세훈 | |
| String.format을 사용하여 구현 | |
| 한 줄에 1단부터 9단까지가 모두 포함되어야 하므로 j를 먼저 출력함으로서 조건을 만족시킴 | |
| */ | |
| public class JavaStudy01 { | |
| public static void main(String[] args){ | |
| for (int i = 1; i < 10; i++){ | |
| for (int j = 1; j < 10; j++){ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| 김세훈 | |
| 100원 단위는 100으로 나누어 떨어지는지 확인한 후 100으로 나눈 몫을 100으로 곱하여 산출 | |
| */ | |
| import java.util.Scanner; | |
| public class JavaStudy02 { | |
| public static void main(String[] args){ | |
| System.out.println("[캐시백 계산]"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| 김세훈 | |
| 일반 할인 적용 여부부터 검사하여 특별 할인이 이미 적용되었는데도 불구하고 일반 할인이 적용되지 않도록 함 | |
| */ | |
| import java.util.Scanner; | |
| public class JavaStudy03 { | |
| public static void main(String[] args){ | |
| System.out.println("[입장권 계산]"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| 김세훈 | |
| 성별에 대한 주민등록번호 뒷자리 첫 번째 수의 경우 다음 링크에 존재하는 기준을 참고함(내/외국인 여부에 대한 입력이 존재하지 않는 이유로 국내만 생각하였습니다.) | |
| https://ko.wikipedia.org/wiki/%EC%A3%BC%EB%AF%BC%EB%93%B1%EB%A1%9D%EB%B2%88%ED%98%B8 | |
| 출생지역번호 및 출생등록순서의 경우 출생지역과 등록순서가 입력으로 들어오지 않기에 해당 방법을 사용하지 않고 2020년 기준의 임의의 수 6자리로 제작하도록 구현함 | |
| */ | |
| import java.util.Scanner; | |
| import java.util.Random; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| 김세훈 | |
| LocalDate 클래스를 이용한 달련 구현 | |
| */ | |
| import java.util.Scanner; | |
| import java.time.LocalDate; | |
| public class JavaStudy05 { | |
| public static void main(String[] args){ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| 김세훈 | |
| 배열과 반복문을 통한 투표 시뮬레이션 | |
| */ | |
| import java.util.Random; | |
| public class JavaStudy06 { | |
| public static void main(String[] args){ | |
| Random random = new Random(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| 김세훈 | |
| 배열과 반복문을 통한 로또 시뮬레이션 | |
| 로또 번호는 일반적으로 오름차순으로 출력되므로 Arrays.sort()를 수행하여 오름차순으로 되도록 조정함 | |
| */ | |
| import java.util.Arrays; | |
| import java.util.Random; | |
| import java.util.Scanner; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| 김세훈 | |
| 반복문 및 배열과 함수를 사용한 과세 로직 작성 | |
| 비교 구문을 줄이기 위해 반복문과 배열을 사용하여 비교구문 구현 | |
| */ | |
| import java.util.Scanner; | |
| public class JavaStudy08 { | |
| static long[] stdValue = { // 과세 표준 | 
OlderNewer
        