user3024242
user3024242

Reputation: 1

Keep Getting An invalid term expression int

class Typerwriter
{
    public static string Type(params string[] words)
    {
        StringBuilder sb = new StringBuilder();
    for ( int i = 0; int < words.Length; i++)

    {
        sb.Append(words[i]);
    }
        return sb.ToString();
    }

I'm a beginner and trying to figure this out and I keep getting an invalid term expression int. What is it that i'm doing wrong

Upvotes: 0

Views: 353

Answers (1)

Selman Gen&#231;
Selman Gen&#231;

Reputation: 101681

change int < words.Length to i < words.Length

Upvotes: 5

Related Questions