import java.util.Scanner ;
class inputnilai {
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
String nama;
String npm;
String jurusan;
double tgs;
double uas;
double rata;
System.out.println("Nama =");
nama=input.next();
System.out.println("Npm =");
npm=input.next();
System.out.println("Jurusan =");
jurusan=input.next();
System.out.println("tugas =");
tgs=input.nextDouble();
System.out.println("uas =");
uas=input.nextDouble();
rata=(tgs+uas)/2;
System.out.println("Nama =+Nama");
System.out.println("Npm =+Npm");
System.out.println("Jurusan =+Jurusan");
System.out.println("rata-ratanya ="+rata);
}
}
Nama =
0 komentar:
Posting Komentar