Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. namespace demo_try
  2. {
  3. class Program
  4. {
  5. static void Main(string[] args)
  6. {
  7. //string[] sarry ={"hi -", "me"};
  8.  
  9. //for (int i = 0; i < sarry.Length; i++)
  10. //{
  11. // Console.Write("- {0} -", sarry[i]);
  12. //}
  13. //foreach (var n in sarry)
  14. //{
  15. // Console.Write("-{0}",n);
  16.  
  17. //}
  18.  
  19. string [] sarray= new string [10] ;
  20.  
  21. for (int i = 0; i < sarray.Length; i++)
  22. {
  23.  
  24. Console.Write("Enter the values for an array {0}", sarray[i]);
  25. Console.ReadLine(sarray[i]);
  26. }
  27.  
  28.  
  29. }
  30. }
  31.  
  32. Error 1 No overload for method 'ReadLine' takes 1 argumentts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement