- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanav.java
More file actions
Latest commit
41 lines (30 loc) · 952 Bytes
/
Copy pathmanav.java
File metadata and controls
41 lines (30 loc) · 952 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
importjava.util.Scanner;
publicclassmanav {
publicstaticvoidmain(String[] args) {
doublearmut = 2.14;
doubleelma =3.67;
doubledomates = 1.11;
doublemuz = 0.95;
doublepatlican = 5;
doubletotal = 0;
Scannersc = newScanner(System.in);
inta,b,c,d,e;
System.out.println("armut kac kg:");
a = sc.nextInt();
total += a*armut;
System.out.println("elma kac kg:");
b = sc.nextInt();
total += b*elma;
System.out.println("muz kac kg:");
c = sc.nextInt();
total += c*muz;
System.out.println("domates kac kg:");
d = sc.nextInt();
total += d*domates;
System.out.println("patlican kac kg:");
e = sc.nextInt();
total += e*patlican;
sc.close();
System.out.println("Toplam = "+ String.format("%.3f", total));
}
}