import java.io.*;
class nyaribuku{
nyaribuku(String namabuku,int hargabuku,int jmlahbeli,int totalbayar){
System.out.println("NamaBuku :"+namabuku);
System.out.println("HargaBuku :"+harga);
System.out.println("JmlahBeli :"+jmlah);
System.out.println("TotalBayar :"+harga*jmlahbeli);
}
}
public class belibuku{
public static void main (String[]args)throws IOException{
BufferedReader input=new BufferedReader (new InputStreamReader(System.in));
System.out.print("NamaBuku :");
String namabuku=input.readline();
System.out.print("HargaBuku :");
int hargabuku=Integer.parseInt(harga);
System.out.print("JmlahBeli :");
int jmlahbeli=Integer.parseInt(jmlah);
System.out.print("totalbayar :");
String totalbayar=input.readline();
int totalbayar=Integer.parseInt(totalbayar);
System.out.println("totalbayar="+(harga*jmlahbeli)
}
}
class nyaribuku{
nyaribuku(String namabuku,int hargabuku,int jmlahbeli,int totalbayar){
System.out.println("NamaBuku :"+namabuku);
System.out.println("HargaBuku :"+harga);
System.out.println("JmlahBeli :"+jmlah);
System.out.println("TotalBayar :"+harga*jmlahbeli);
}
}
public class belibuku{
public static void main (String[]args)throws IOException{
BufferedReader input=new BufferedReader (new InputStreamReader(System.in));
System.out.print("NamaBuku :");
String namabuku=input.readline();
System.out.print("HargaBuku :");
int hargabuku=Integer.parseInt(harga);
System.out.print("JmlahBeli :");
int jmlahbeli=Integer.parseInt(jmlah);
System.out.print("totalbayar :");
String totalbayar=input.readline();
int totalbayar=Integer.parseInt(totalbayar);
System.out.println("totalbayar="+(harga*jmlahbeli)
}
}
0 comments:
Posting Komentar