You are on page 1of 1

Exam 1

#9
-------#include <iostream>
using namespace std;
int main (void)
{float y=1, x=1, v=1;
int b=0;
cin>>y;
cin>>x;
v=y/x;
if (v<0)
v=-v;
while (b<v)
{b++;}
if ((y==b*x) || (y==-b*x))
cout<<"no remainder"<<endl;
else
cout<<"remainder"<<endl;
return(0);
}
================================================================================
==

You might also like