this program have edit......you can copy into nebeans
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package kwitansi;
/**
*
* @author loeb
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String Satuan[]={"Satu","Dua","Tiga","Empat",
"Lima","Enam","Tujuh",
"Delapan","Sembilan", "Sepuluh"};
BufferedReader dataIn = new BufferedReader(new InputStreamReader( System.in) );
String angka = "";
System.out.print("Input Bilangan:");
try{
angka = dataIn.readLine();
}catch( IOException e) { System.out.println("Error!");}
int posisi=0;
posisi=Integer.parseInt(angka);
if (posisi+1 <= 10) { System.out.println("Terbilang " + Satuan[posisi-1] + "!"); } else if (posisi >10 && posisi < posisi="posisi%10;">
Saturday, June 20, 2009
program of kwintasi
Subscribe to:
Post Comments (Atom)
0 comments on "program of kwintasi"
Subscribe in a Reader
Post a Comment