Professional Documents
Culture Documents
Practical no: 1C
Aim- Create an application that receives the (Student Id,
Student Name, Course Name, Date of Birth) information from
a set of students. The application should also display the
information of all the students once the data entered.
Code:-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace prc1c
struct Student
{
Console.WriteLine("Student Id:"+sid);
class Program
int n = int.Parse(Console.ReadLine());
allstudents[i].sid = int.Parse(Console.ReadLine());
allstudents[i].sname = Console.ReadLine();
allstudents[i].cname = Console.ReadLine();
Console.WriteLine("Enter Day of Dob");
allstudents[i].dd = int.Parse(Console.ReadLine());
allstudents[i].mm = int.Parse(Console.ReadLine());
allstudents[i].yy = int.Parse(Console.ReadLine());
Console.WriteLine("----------------------------------------------");
allstudents[i].Display();
Console.WriteLine("----------------------------------------------");
Console.ReadLine();
OUTPUT:-