How to insert words from a string into a table in C#

1 Answer

0 votes
using System;
  
class Program
{
    static void Main() {
        string s = "vb.net javascript php c c++ python c#";
        string[] array =  s.Split(' ');
 
        foreach (string item in array) {
            Console.WriteLine(item);
        }
    }
}
  
  
  
/*
run:
  
vb.net
javascript
php
c
c++
python
c#
  
*/

 



answered Sep 8, 2019 by avibootz
...