Advertisement
andre_qramos

Múltiplos

Sep 4th, 2020
1,437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include<iostream>
  2. #include <iomanip>
  3. #include <cstdio>
  4. #include <stdlib.h>
  5. using namespace std;
  6.  
  7. int main() {
  8.     int x, y;
  9.     cin >> x >> y;
  10.     if((x % y) == 0){
  11.         printf("Sim\n");
  12.         return 0;
  13.     }
  14.     else {
  15.         printf("Nao\n");
  16.         return 0;      
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement