Gadget Ferrari, Z3X BOX Samsung Tool PRO, Nexbox, Octoplus Octopus Samsung Factory Reset, Ultimate Multi Tool, Android Jelly Bean, Specifications, Images and Price, Mobile Phone Tools

C# Program to count total characters entered by users

C# Program to count total characters entered by users - we should care about the technology that continues to grow, because all the technology is usually created to simplify our lives, every time there is a new technology that is embedded into the gadgets of various brands, on blogs Gadget Ferrari we will review the latest and old gadgets that start from the spec and the price ... well now we will discuss first about C# Program to count total characters entered by users please refer to the information we will convey as we always try to display complete information.

Articles : C# Program to count total characters entered by users
full Link : C# Program to count total characters entered by users
Article Csharp, Article programs,

You can also see our article on:


C# Program to count total characters entered by users

C# Program to Print Entering Characters from users and then Count Total entering characters 

Program Statement:
Write a program which takes characters from user until user press ENTER and then program will show the number of words with length greater than or equal to 5.

Solution:
public class length
{
int count1 = 0, count2 = 0;
public void check()
{
Console.Write("\n\t\tEnter string : ");
string ch = Console.ReadLine();
for (int x = 0; x < ch.Length; x++)
{
if (ch[x] == ' ')
{
count1++;
if (x >= 5)
{ count2++; }
}
}
Console.WriteLine("\n\t\tNumber of words with length greater than or equal to 5 : {0}", count2);
Console.WriteLine();
}
}




so many information about C# Program to count total characters entered by users

hopefully the infromation we provide with the title C# Program to count total characters entered by users can give you the reperency to find the gadget that suits your life.

you just read the article with the title C# Program to count total characters entered by users if you intend to bookmark or share it for more useful for others please use link https://ferraricars77.blogspot.com/2013/12/c-program-to-count-total-characters.html and if you want to get more information please visit other page.

Tag : , ,
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : C# Program to count total characters entered by users

0 comments:

Posting Komentar