문제에 있는 연산을 그대로 입력하여 출력하였습니다. #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
입력받은대로 출력하는 문제입니다. getline 함수로 줄을 받아와서 s에 넣습니다. 그리고 s를 출력하는 작업을 반복합니다. 공백이 입력 되었을때 while문이 종료하게 됩니다. #include #include using namespace std; int main(int argc, char *argv[]) { string s= " "; while(s != ""){ getline(cin, s); cout
단순 출력하는 문제입니다. #include using namespace std; int main(int argc, char * argv[]) { cout
출력에 보이는 개 모양의 이미지를 만드는 문제입니다. #include using namespace std; int main(int argc, char * argv[]) { cout