Guest User

Untitled

a guest
Oct 19th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int num1, num2;
  6. cout << "Enter num1:\n" ;
  7. cin >> num1 ;
  8. cout << "Enter num2:";
  9. cin >> num2 ;
  10.  
  11. int num3=num1%num2 ;
  12.  
  13. if(num3==0){
  14.  
  15. cout <<"是倍數";
  16.  
  17. }else{
  18.  
  19. cout <<"不是倍數";
  20. }
  21.  
  22. return 0 ;
  23. }
Add Comment
Please, Sign In to add comment