Created
July 17, 2020 05:09
-
-
Save kshitijvarshne1/2ad4709247cb5c1f2c1bcc4361f7f008 to your computer and use it in GitHub Desktop.
Some basic information about student
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NAME-Kshitij | |
DATE-16th july 2020 | |
TIME-01:27 PM | |
*/ | |
import java.util.Scanner; | |
public class p2 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
String stuName = sc.nextLine(); | |
String fatName = sc.nextLine(); | |
String motName = sc.nextLine(); | |
String addTell = sc.nextLine(); | |
long stuContNo = sc.nextLong(); | |
long fatContNo = sc.nextLong(); | |
long motContNo = sc.nextLong(); | |
double perInTwelve = sc.nextDouble(); | |
double perInTen = sc.nextDouble(); | |
boolean hostChoice = sc.nextBoolean(); | |
int year = sc.nextInt(); | |
char sec= sc.next().charAt(0); | |
int classRollNo = sc.nextInt(); | |
int univRollNo = sc.nextInt(); | |
sc.nextLine(); | |
String course = sc.nextLine(); | |
sc.close(); | |
System.out.println("Please enter your name: "+ stuName); | |
System.out.println("Please enter your father's name: "+ fatName); | |
System.out.println("Please enter your mother's name: "+ motName); | |
System.out.println("Please enter your permanent address: "+ addTell); | |
System.out.println("Please enter your contact number: "+ stuContNo); | |
System.out.println("Please enter your father's contact number: "+ fatContNo); | |
System.out.println("Please enter you mother's contact number: "+ motContNo); | |
System.out.println("Percentage in 12th: "+ perInTwelve); | |
System.out.println("Percentage in 10th: "+ perInTen); | |
System.out.println("Hostel Choice: "+ hostChoice); | |
System.out.println("Year: "+ year); | |
System.out.println("Section: "+ sec); | |
System.out.println("Class Roll No "+ classRollNo); | |
System.out.println("University Roll Number: "+ univRollNo); | |
System.out.println("Course: "+ course); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment