learning-java-2825378 icon indicating copy to clipboard operation
learning-java-2825378 copied to clipboard

02 06b

Open Erdenebulgan19 opened this issue 6 years ago • 0 comments

package com.company;

import java.util.Scanner;

public class Main {

public static void main (String[] args) {
double studentGPA =3.37;
String studentFirstName = "EB";
String studentLastName = "Erdene";
System.out.println(studentFirstName + " " + studentLastName + " has a GPA of " + studentGPA );
System.out.println("What do you want to update it to?");
 Scanner input = new Scanner(System.in);
 studentGPA = input.nextDouble();
 System.out.println(studentFirstName + " " + studentLastName +
		 " now has a GPA of" + studentGPA);
}

}

Erdenebulgan19 avatar Jun 20 '20 15:06 Erdenebulgan19