"SWEA 1938 아주 간단한 계산기"의 두 판 사이의 차이

1번째 줄: 1번째 줄:
==개요==
==개요==
;SWEA-1938 아주 간단한 계산기
;SWEA-1938 아주 간단한 계산기
{{소스헤더|입력}}
<source lang='text'>
8 3
</source>
{{소스헤더|출력}}
<source lang='text'>
11
5
24
2
</source>


==C++==
==C++==

2018년 4월 15일 (일) 23:12 판

1 개요

SWEA-1938 아주 간단한 계산기
입력
8 3
출력
11
5
24
2

2 C++

#include <iostream>
 
using namespace std;
 
int main() {
    int a, b;
    cin >> a >> b;
 
    cout << a+b << endl;
    cout << a-b << endl;
    cout << a*b << endl;
    cout << a/b << endl;
}

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}