Advertisement
lokhun

Untitled

Jan 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int number1{0};
  8.     int number2{0};
  9.  
  10.     cout << "Enter two integers: ";
  11.     cin >> number1 >> number2;
  12.  
  13.     if ( number1%number2 == 0)
  14.     cout << "The first is the multiple of the second." << endl;
  15.     else
  16.     cout << "The first is not the multiple of the second." << endl;
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement