-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.cs
More file actions
46 lines (38 loc) · 1.3 KB
/
Copy pathStudent.cs
File metadata and controls
46 lines (38 loc) · 1.3 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
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LAB_2
{
internal class Student
{
public long Enrollment_No;
public string Student_Name;
public int Semester;
public float CPI;
public float SPI;
public Student()
{
Console.Write("Enter Enrollment No. : ");
Enrollment_No = long.Parse(Console.ReadLine());
Console.Write("Enter Student Name : ");
Student_Name = Console.ReadLine();
Console.Write("Enter Semester : ");
Semester = int.Parse(Console.ReadLine());
Console.Write("Enter CPI : ");
CPI = float.Parse(Console.ReadLine());
Console.Write("Enter SPI : ");
SPI = float.Parse(Console.ReadLine());
}
public void DisplayStudentDetails()
{
Console.WriteLine("\n\nStudent Details :-> ");
Console.WriteLine("\nEnrollment No. : " + Enrollment_No);
Console.WriteLine("Name : " + Student_Name);
Console.WriteLine("Semester : " + Semester);
Console.WriteLine("CPI : " + CPI);
Console.WriteLine("SPI : " + SPI);
}
}
}