using System;
using System.Linq;
namespace MyCompiler {
class Program {
public static void Main(string[] args) {
Console.WriteLine("Hello world!");
string input = "this is apple";
string[] inputarry = input.Split(" ");
foreach(var ele in inputarry){
Console.Write("The count of each word is : {0} \n",ele.Length);
}
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: