Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace EXP4
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Enter the Number of Employee : ");
- int en = Convert.ToInt32(Console.ReadLine());
- string[][] arr = new string[en][];
- for (int i = 0; i < en; i++)
- {
- Console.Write("Enter the Name of the Employee {0} : ",i+1);
- string name = Console.ReadLine();
- Console.Write("Enter the Number of the Qualification for {0} : ",name);
- int qn = Convert.ToInt32(Console.ReadLine());
- arr[i] = new string[qn+1];
- arr[i][0] = name;
- for (int j = 1; j <= qn; j++)
- {
- Console.Write("Enter Qualification {0} for {0} : ",j,name);
- arr[i][j] = Console.ReadLine();}
- }
- Console.WriteLine("The Employee Details are : \n\n");
- for (int i = 0; i < en; i++)
- {
- Console.WriteLine("Name : {0}", arr[i][0]);
- Console.WriteLine("Qualifications");
- for (int j = 1;j< arr[i].Length;j++)
- {Console.WriteLine(arr[i][j]);}
- Console.WriteLine("--------------------------------------------------------");
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement