static void Main(string[] args){
string hello = “hello world”;
int i = 0;
int mysubs = hello.Substring(0,hello.Length-3).Length;
do
{
Console.WriteLine(hello);
i++;
} while (i < int.Parse(mysubs.ToString()));
}
Blog
static void Main(string[] args){
string hello = “hello world”;
int i = 0;
int mysubs = hello.Substring(0,hello.Length-3).Length;
do
{
Console.WriteLine(hello);
i++;
} while (i < int.Parse(mysubs.ToString()));
}