-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathInfo.java
More file actions
42 lines (39 loc) · 1.37 KB
/
Info.java
File metadata and controls
42 lines (39 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import java.util.Scanner;
class info
{
public static void main(String args[])
{
int RollNo, Contact, AdmissionFees, SubjectFees;
String Name, Address, Subject, SubjectCode;
Scanner SC=new Scanner(System.in);
System.out.print("Enter the number of student ");
int n;
n = SC.nextInt();
for(int i=0;i<n;i++)
{
System.out.println("Enter Roll No :");
RollNo = SC.nextInt();
System.out.println("Enter Name of Student :");
Name = SC.next();
System.out.println("Enter Contact ");
Contact = SC.nextInt();
System.out.println("Enter Address of Student :");
Address = SC.next();
System.out.println("Enter Subject :");
Subject = SC.next();
System.out.println("Enter Name of Subject Code :");
SubjectCode = SC.next();
System.out.println("Enter Admission Fees :");
AdmissionFees = SC.nextInt();
System.out.println("Enter Subject Fees :");
SubjectFees = SC.nextInt();
int TotalFees=AdmissionFees+SubjectFees;
System.out.println("Roll No:" + RollNo);
System.out.println("Name : " + Name);
System.out.println("Contact :" + Contact);
System.out.println("Address :" + Address);
System.out.println("Subject :" + Subject);
System.out.println("Total Fees :" + TotalFees);
}
}
}