taks kamps

taks kamps

  • NA
  • 39
  • 6.9k

getting a substring

Dec 8 2018 11:06 AM
coding i have done so far but not working
 
using System;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
string lyric = "Just a small town girl";
string firstFourCharacters, lastFourCharacters;

firstFourCharacters = lyric.IndexOf"just";

lastFourCharacters = lyric.Indexof"girl";

Console.WriteLine(firstFourCharacters + " " + lastFourCharacters);
}
}

Answers (1)