Select Menu

Search This Blog

Populer Posts Hari ini

Popular Posts

Powered by Blogger.

Lorem 1

adsense

" });

Circle Gallery

" });

News

" });
» » » » source code prosedur dan fugsi di java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package prosedurdanfungsi;

/**
 *
 * @author andi m
 */
public class ProsedurDanFungsi {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        jumlah(5,5,5);
        System.out.println(jumlahFungsi(5,5,5));
    }
    //prosedur
    public static void jumlah(int a,int b,int c){
        System.out.println(a+b+c);
    }
    //fungsi
    public static int jumlahFungsi(int a,int b,int c){
     return a+b+c;
    }
}

About andi

«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply