-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathManavKasa
25 lines (18 loc) · 829 Bytes
/
ManavKasa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.util.Scanner;
public class ManavKasa {
public static void main(String[] args) {
double toplam; // Meyveleri ayrı ayrı depolamaya gerek yok =)
Scanner sc = new Scanner(System.in);
System.out.print("Armut (KG): ");
toplam = ( 2.14 * (sc.nextDouble()) );
System.out.print("Elma (KG): ");
toplam += ( 3.67 * (sc.nextDouble()) );
System.out.print("Domates (KG): ");
toplam += ( 1.11 * (sc.nextDouble()) );
System.out.print("Muz (KG): ");
toplam += ( 0.95 * (sc.nextDouble()) ); //hocam muzu bu fiyata nerde bulurum lütfen söyleyin
System.out.print("Patlıcan (KG): ");
toplam += ( 5.00 * (sc.nextDouble()) ); //muzdan verdiklerini burdan alıyolar
System.out.println("Toplam Tutar: " + toplam);
}
}