Advertisement
faizN

Tugas Algoritma & Struktur Data Ke-7 [3] [Modul 12]

Dec 19th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. public class tugasModulDuaBelas {
  2.     public Integer nilaiKecil(int a,int b,int c){
  3.         if(a < b && a < c){
  4.             return a;
  5.         }else if(b < a && b < c){
  6.             return b;
  7.         }else{
  8.             return c;
  9.         }
  10.     }
  11.    
  12.     public static void main(String[] args){
  13.         tugas obj = new tugas();
  14.         System.out.println(obj.nilaiKecil(8, 3, 14));
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement