#include <iostream>
using namespace std;
int main()
{
//실수에 /연산을하면 소수점까지 나오기 때문에 static_cast<int>로 강제 형변환을 해줬다.
double x = 5.7;
int div1 = static_cast<int>(x / 5);
double mod1 = x - 5 * static_cast<int>(x / 5);
int y = 10;
int div2 = static_cast<int>(y / 2);
double mod2 = y % 2;
cout << "5.7/5 = 몫 : " << div1 << ", 나머지 : " << mod1 << endl;
cout << "10/2 = 몫 : " << div2 << ", 나머지 : " << mod2 << endl;
return 0;
}