SWEA 1938 아주 간단한 계산기

Jmnote (토론 | 기여)님의 2018년 4월 15일 (일) 23:15 판 (→‎개요)

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 같이 보기

4 참고

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