Minimun Maksimun.docx

  • Uploaded by: Nur Eva Yanti
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Minimun Maksimun.docx as PDF for free.

More details

  • Words: 87
  • Pages: 1
package coba; import javax.swing.JOptionPane; public class coba2 { public static void main (String Args[]){ String ANGKAtemp; int A, B, C, Min = 0, Maks = 0; ANGKAtemp = JOptionPane.showInputDialog("MASUKAN ANGKA PERTAMA : "); A = Integer.parseInt(ANGKAtemp); ANGKAtemp = JOptionPane.showInputDialog("MASUKAN ANGKA KEDUA : "); B = Integer.parseInt(ANGKAtemp); ANGKAtemp = JOptionPane.showInputDialog("MASUKAN ANGKA KETIGA : "); C = Integer.parseInt(ANGKAtemp); if((A>B)&&(A>C)){ Maks =A; } else if((B>A)&&(B>C)){ Maks =B; } if((C>A)&&(C>B)){ Maks =C;} if((A

Related Documents


More Documents from "Impulsive collector"