import java.io.*;
public class Pembelian {
public static void main (String[] args)throws IOException{
string temp1,temp2,temp3;
int item1,item2,item3;
int jumlah;
BufferedReader input=
BufferedReader(new InputStreamReader(System.in));
System.out.print ("item1=");
temp1= input.readLine();
item1= integer.parseInt(temp1);
System.out.print ("item2=");
temp2= input.readLine();
item2= integer.parseInt(temp2);
System.out.print ("item3=");
temp3= input.readLine();
item3= integer.parseInt(temp3);
jumlah = item1+item2+item3;
System.out.println("total harga pembelian=" +jumlah);
}
}
public class Pembelian {
public static void main (String[] args)throws IOException{
string temp1,temp2,temp3;
int item1,item2,item3;
int jumlah;
BufferedReader input=
BufferedReader(new InputStreamReader(System.in));
System.out.print ("item1=");
temp1= input.readLine();
item1= integer.parseInt(temp1);
System.out.print ("item2=");
temp2= input.readLine();
item2= integer.parseInt(temp2);
System.out.print ("item3=");
temp3= input.readLine();
item3= integer.parseInt(temp3);
jumlah = item1+item2+item3;
System.out.println("total harga pembelian=" +jumlah);
}
}
0 comments:
Post a Comment