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