Advertisement
Telor_Goreng0

Nomor2

Mar 28th, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class nomor2 {
  3. public static void main (String[]args){
  4. int a,b ;
  5. for (b=1;b <= 20 ; b++){
  6. if (b%2==0)
  7. System.out.println(b);
  8. }
  9. a = b*5+5;
  10. System.out.println("jumlah : "+a);
  11. }}
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement