Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class test{
- String result;
- double coba;
- static double angka = 200;
- public static void main(String[] args) {
- test p = new test();
- String m = p.time(angka);
- double dam = p.nesws(angka);
- System.out.println(m + " " +dam);
- }
- public String time(double j){
- return result = String.valueOf(j/20);
- }
- public double nesws(double l){
- for(double i=0; i<5; i++){
- l = l+2;
- coba = l/20;
- }
- return coba;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement