Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int number1{0};
- int number2{0};
- cout << "Enter two integers: ";
- cin >> number1 >> number2;
- if ( number1%number2 == 0)
- cout << "The first is the multiple of the second." << endl;
- else
- cout << "The first is not the multiple of the second." << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement