## C# Program to Count Number of Vowels and Consonants in a String

This is a C# Program to count number of vowels and consonants from a given string. Problem Description This C# Program Counts number of Vowels and consonants from a given String. Problem Solution Here program is used to find the number of vowels and consonants present in the given sentence. The vowels are ‘a’, ‘e’, … Read more

advertisement

## C# Program to Find the Sum of Numbers in a String

This is a C# Program to read a string and find the sum of all digits in the string. Problem Description This C# Program Reads a String and find the Sum of all Digits in the String. Problem Solution Here the program accepts a character string, then add all the character’s integer value, thereby summing … Read more

advertisement

## C# Program to Find the Frequency of “is” Word in a String

This is a C# Program to find the frequency of the word ʺisʺ in a given Sentence. Problem Description This C# Program Finds the Frequency of the Word ʺisʺ in a given Sentence. Program/Source Code Here the frequency of ‘is’ in the given string is found. Program/Source Code Here is source code of the C# … Read more

advertisement

## C# Program to Replace a Character with the String

This is a C# Program to replace a character with the string. Problem Description This C# Program Replaces a Character with the String. Problem Solution Here first padding is done and then the character is replaced with the given string. Program/Source Code Here is source code of the C# Program to Replace a Character with … Read more

advertisement

## C# Program to Encrypt/Decrypt a String using Rijndael Key

This is a C# Program to check whether the entered number is even or odd. Problem Description This C# Program Encrypts/Decrypts using Rijndael Key. Problem Solution Here the namespace that is used is system.security.cryptography and the methods and properties of the rijndael method is used. Program/Source Code Here is source code of the C# Program … Read more

advertisement

## C# Program to Count the Number of Lines in a String

This is a C# Program to count lines in a string. Problem Description This C# Program Counts Lines in a String. Problem Solution Here the Number of Lines in the given string is calculated and are stored in count variable and are displayed. Program/Source Code Here is source code of the C# Program to Count … Read more

advertisement

## C# Program to Generate Random String

This is a C# Program to randomly generate strings. Problem Description This C# Program Randomly Generates Strings. Problem Solution Here strings are randomly generated using the random function. Program/Source Code Here is source code of the C# Program to Randomly Generate Strings. The C# program is successfully compiled and executed with Microsoft Visual Studio. The … Read more

advertisement

## C# Program to Replace a String with Another String

This is a C# Program to replace string in string. Problem Description This C# Program Replaces String in String. Problem Solution Here It changes all occurrences of one substring into another substring. Program/Source Code Here is source code of the C# Program to Replace String in String. The C# program is successfully compiled and executed … Read more

advertisement

## C# Program to Convert Upper case to Lower Case

This is a C# Program to convert upper case to lower case. Problem Description This C# Program Converts Upper Case to Lower Case. Problem Solution Here the String is obtained in uppercase which is converted to lowercase using tolower(). Program/Source Code Here is source code of the C# Program to Convert Upper case to Lower … Read more

advertisement

## C# Program to Display Date in String

This is a C# Program to display date in string. Problem Description This C# Program Displays Date in String. Problem Solution Here the date is displayed and month, day and year are separately displayed. Program/Source Code Here is source code of the C# Program to Display Date in String. The C# program is successfully compiled … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.