Advertisement
Marcos_Carvalho

pratica avaliativa q2

Mar 30th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include  <stdio.h>
  2.  
  3.  
  4. int main (){
  5. int num, resultado,resultado1;
  6. printf("digite um num");
  7. scanf(" %d", &num);
  8.  
  9. resultado1=num/3;
  10. resultado=num/5;
  11.  
  12. if ( num%3 == 0)printf("divisivel por 3");
  13. else if ( num%5 == 0)printf("divisivel por 5");
  14.  
  15.  
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement