Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int num1, num2;
- cout << "Enter num1:\n" ;
- cin >> num1 ;
- cout << "Enter num2:";
- cin >> num2 ;
- int num3=num1%num2 ;
- if(num3==0){
- cout <<"是倍數";
- }else{
- cout <<"不是倍數";
- }
- return 0 ;
- }
Add Comment
Please, Sign In to add comment