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
    
  
  
    
  | /* | |
| 김세훈 | |
| 일반 할인 적용 여부부터 검사하여 특별 할인이 이미 적용되었는데도 불구하고 일반 할인이 적용되지 않도록 함 | |
| */ | |
| 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
    
  
  
    
  | /* | |
| 김세훈 | |
| 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
    
  
  
    
  | /* | |
| 김세훈 | |
| 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
    
  
  
    
  | #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
    
  
  
    
  | #include<stdio.h> | |
| int main(){ | |
| return 0; | |
| } | 
NewerOlder
        