일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- embededtype
- gitinitial
- jpa
- spring
- JDBC connection pool
- springbootH2
- springbootproxy
- 자바제너릭
- JPAmapping
- jpqlquery
- MySqlType
- springboot기본설정
- 제이피큐엘쿼리
- JPA값타입
- dockercmd
- 이해와 원리
- JPAproxy
- OSIV
- javageneric
- JPA Hint & Lock
- JPA프록시
- 스프링부트
- httppie
- Git
- 스프링부트기본설정
- 데이터베이트h2
- 에이치투데이터베이스
- 임베디드타입
- Open EntityManager
- sql
Archives
- Today
- Total
빡코
[과제]백준_ 10872번 _팩토리얼 본문
https://www.acmicpc.net/problem/10872
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int sum = 1;
for(int i=1;i<N+1;i++) {
sum*=i;
}
System.out.println(sum);
}
}
'Algorithm' 카테고리의 다른 글
[과제] 설명 준비해오기1 (0) | 2020.01.02 |
---|---|
[ 과제]백준_ 11047번_동전0 (0) | 2020.01.02 |
[스터디] 프로그래머스_레벨1_2016년 ( 요일맞추기) (0) | 2020.01.02 |
알고리즘에 대하여 (0) | 2020.01.02 |
[알고 day2] 퀵정렬 (0) | 2020.01.01 |