Reginaldojs

exercicio 16,lista 2

May 15th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.         int n1,n2;
  4.         printf(digite dois numeros inteiros positivos:");
  5.        scanf("%d %d",&n1,&n2);
  6.        if(n1%n2==0 || n2%n1==0)
  7.           printf("multiplo");
  8.        else
  9.           printf("nao eh multiplo");
  10.        return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment