Advertisement
vvccs

EXP4

Apr 13th, 2024 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. using System;
  2. namespace EXP4
  3. {
  4.  
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. Console.WriteLine("Enter the Number of Employee : ");
  10. int en = Convert.ToInt32(Console.ReadLine());
  11. string[][] arr = new string[en][];
  12. for (int i = 0; i < en; i++)
  13. {
  14. Console.Write("Enter the Name of the Employee {0} : ",i+1);
  15. string name = Console.ReadLine();
  16. Console.Write("Enter the Number of the Qualification for {0} : ",name);
  17. int qn = Convert.ToInt32(Console.ReadLine());
  18. arr[i] = new string[qn+1];
  19. arr[i][0] = name;
  20. for (int j = 1; j <= qn; j++)
  21. {
  22. Console.Write("Enter Qualification {0} for {0} : ",j,name);
  23. arr[i][j] = Console.ReadLine();}
  24. }
  25. Console.WriteLine("The Employee Details are : \n\n");
  26. for (int i = 0; i < en; i++)
  27. {
  28. Console.WriteLine("Name : {0}", arr[i][0]);
  29. Console.WriteLine("Qualifications");
  30. for (int j = 1;j< arr[i].Length;j++)
  31. {Console.WriteLine(arr[i][j]);}
  32. Console.WriteLine("--------------------------------------------------------");
  33. }
  34. Console.ReadLine();
  35. }
  36. }
  37.  
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement