Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class StudentInformation {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String name = scanner.nextLine();
- int age = Integer.parseInt(scanner.nextLine());
- double grade = Double.parseDouble(scanner.nextLine());
- System.out.printf("Name: %s, Age: %d, Grade: %.2f\n", name, age, grade);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement