Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c sharp type in word and calculate how much a letter is inside that word

public static int countLetters(string word, string countableLetter)
{
    int count = 0;
    foreach (char c in word)
    {
        count++;
    }
    return count;
}
Comment

c sharp type in word and calculate how much a letter is inside that word

public static int countLetters(string word, string countableLetters)
{
    int count = 0;
    foreach (char c in word)
    {
        if(countableLetters.Contains(c))
           count++;
    }
    return count;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: This page contains six pages, created with MigraDoc and scaled down to fit on one page 
Csharp :: linq while loop in c# 
Csharp :: C# ToCsv Extension Method 
Csharp :: csharp attributes as generics constraints 
Csharp :: dataannotations for currency in c# 
Csharp :: for loop c# to print times tables 
Csharp :: how to make a C# game launcher 
Csharp :: asp.net store list in web.config 
Csharp :: wpf fixed window size 
Csharp :: c# list find null 
Csharp :: singleton pattern c# stack overflow 
Csharp :: nuget Microsoft.EntityFrameworkCore.InMemory": "1.0.0" 
Csharp :: unity transparent sprite 
Csharp :: dapper extension 
Csharp :: real world example of sinleton design pattern 
Csharp :: how to get angular on visual studio mac 
Csharp :: C# dest 
Csharp :: c# simplified if statement 
Csharp :: asp:button onclick not respond 
Csharp :: c sharp right rotation 
Csharp :: C# How to implement IEnumerable<T interface 
Csharp :: c# ? behind variable 
Csharp :: take the last 50 from array c# 
Csharp :: dateTime to dataRow in c# 
Csharp :: image into sql database 
Csharp :: c# easy 
Csharp :: ado .net nullable int datareader 
Csharp :: add css class based on model value razor 
Csharp :: c# read single key 
Csharp :: c# formula from string 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =