일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- xlsx
- jimp
- node
- yml
- gitignore
- 프로그래머스
- AWS
- readableStream
- react-hook-form
- TypeScript
- axios
- electron
- react DOM
- 가상 DOM
- window.postMessage
- electron-builder
- timeinput
- domtoimage
- signIn
- cognito
- icrawler
- react
- react-sortable-hoc
- dynamodb
- react-admin
- zerocho
- JavaScript
- Route53
- API Gateway
- react-xml-parser
Archives
- Today
- Total
꾸준히 공부하는 개발자
[프로그래머스] 자릿 수 더하기 본문
#include <iostream>
using namespace std;
int solution(int n)
{
int answer = 0;
while(n > 0){
answer = answer + n%10;
n= n/10;
}
return answer;
}
'프로그래머스' 카테고리의 다른 글
[프로그래머스] 완주하지 못한 선수 (0) | 2020.01.27 |
---|
Comments