using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

 

namespace Prac1f

{

classProgram

{

structStudent

{

publicstringstudentid, studentname, studentcourse, dob;

}

staticvoid Main(string[] args)

{

Student[] sarray = newStudent[5];

for (inti = 0; i< 5; i++)

{

Console.WriteLine(“Enter Id for the Student”);

sarray[i].studentid = Console.ReadLine();

Console.WriteLine(“Enter Student Name”);

sarray[i].studentname = Console.ReadLine();

Console.WriteLine(“Enter Course of the student”);

sarray[i].studentcourse = Console.ReadLine();

Console.WriteLine(“Enter DOB for the Student”);

sarray[i].dob = Console.ReadLine();

 

}

 

Console.WriteLine(“\n\nStudents List\n”);

for (inti = 0; i< 5; i++)

{

Console.WriteLine(“Students Id=” + sarray[i].studentid);

Console.WriteLine(“\nStudents Name=” + sarray[i].studentname);

Console.WriteLine(“\nStudents Course=” + sarray[i].studentcourse);

Console.WriteLine(“\nStudents DOB=” + sarray[i].dob);

Console.ReadLine();

}

}

}

}

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

©2018 MYBSCIT.com. An initiative by some failures to make student scholars.

or

Log in with your credentials

Forgot your details?