here m would be the first part of decimal point and n would be the second part of decimal point.how can i do that?

#include <iostream>
using namespace std;
int main()
{
int a,b,m,n;
double s;
cin>>a;
cin>>b;
s=a/b;
cout<<"you get " << m <<"500 dollars and"<<n<<100 dollars;
system("pause");
return 0;
}
Last edited on
Is there a question?

Please use the code tag to format your code.
Topic archived. No new replies allowed.