Advertisement
royyanxpoll

Soal No.3

Dec 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public class Faktor {
  2.  
  3. public static void main(String[] args) {
  4. int x;
  5. x = 15;
  6. for(int i=1;i<=x;i++)
  7. if(x%i==0)
  8. System.out.println("Hasil Dari Faktor 15 Adalah"+ i);
  9. }
  10.  
  11. public static int faktor( int x, int i){
  12. return i;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement