Advertisement
rmword

Untitled

Oct 12th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Student
  4. {
  5. public static void main(String [] args)
  6. {
  7. String Nama;
  8. double grade;
  9.  
  10. Scanner txtscan=new Scanner(System.in);
  11. Scanner scan=new Scanner(System.in);
  12. System.out.println("Student's Grades Program");
  13. System.out.println("Enter Student's Name :");
  14. Nama = txtscan.nextLine();
  15. System.out.println("Enter Student's Grade :");
  16. grade = scan.nextDouble();
  17.  
  18. System.out.println("Student "+Nama+" has Grade "+grade);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement