for문을 이용해서 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for(int i=0; i
for문을 사용하여 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for(int i=0; i
단순한 덧셈 문제입니다. #include using namespace std; int main(int argc, char *argv[]) { int a, b; cin >> a; cin >> b; cout
문제에 있는 연산을 그대로 입력하여 출력하였습니다. #include using namespace std; int main(int argc, char *argv[]) { int a, b, c; cin >> a; cin >> b; cin >> c; cout
입력받은 두 자연수의 합, 차, 곱, 몫, 나머지를 출력하는 문제입니다. #include using namespace std; int main(int argc, char* argv[]) { int a, b; cin >> a; cin >> b; cout
cout.precision을 이용해서 소수점 10자리까지 출력하게 하였습니다. #include using namespace std; int main() { double A, B; cin >> A >> B; cout.precision(10); cout
입력받은 두 값의 곱을 출력하는 문제입니다. #include using namespace std; int main(int argc, char* argv[]) { int a, b; cin >> a; cin >> b; cout
입력받고 출력하는 과정을 100번 반복하였습니다. #include #include using namespace std; int main(int argc, char * argv[]) { string s; for(int i=0; i