answersLogoWhite

0

Console.WriteLine("Please input a string:");

string str = Console.ReadLine();

Console.WriteLine("Number of characters: " + str.Length);

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

How do you write a program in c sharp to identify whether a character vowels and consonants?

<html> <head> <title>Assignment1</title> </head> <body> Enter the String:<br><br> <form action="ass1.php" method="post"> Name: <input type="text" name="fname" /> <input type="submit" name="Submit" /> </form> <?php if(isset($_POST['Submit'])) { $vowels=array("a","e","i","o","u"); $length=strlen($_POST['fname']); $count = 0; for ($i = 0; $i!= $length; $i++) { if (array_search($_POST['fname'][$i], $vowels)) { $count++; } } } echo 'There are ('.$count.') vowels in the string ('. $_POST['fname'].')'; ?> </body> </html>


Print reverse string in c sharp?

To print a reverse string in C#, you can use the Array.Reverse method or LINQ. Here's a simple example using Array.Reverse: string original = "Hello, World!"; char[] charArray = original.ToCharArray(); Array.Reverse(charArray); string reversed = new string(charArray); Console.WriteLine(reversed); This code converts the string to a character array, reverses the array, and then creates a new string from the reversed array before printing it.


C sharp program on abstract class and abstract method?

public abstract class Person { // derived classes must provide the implementation public abstract string getTitle(); } public class Female : Person { public override string getTitle() { return "Ms"; } } public class Male : Person { public override string getTitle() { return "Mr"; }} Person boy = new Male(); Person girl = new Female(); Console.Write(" {0} vs {1}", boy.getTitle(), girl.getTitle());


Write a simple program of operator overloading IN C SHARP?

class NumberString{private string _value;private static int getIntValue(string aString) {return int.Parse(aString);}public static NumberString operator +(NumberString n1, NumberString n2) {return new NumberString(getIntValue(n1._value) + getIntValue(n2._value));}public NumberString(int n) { _value = n.ToString(); }}


What has a pivot point between a load and an input force?

The answer is: a lever.A lever is a simple machine that has a stick that pivots at a point called a Fulcrum.There are 3 types of Lever:First class lever: A first class lever is when a fulcrum is in the middle of the input force and the load. An example is a seesaw in the playground. When you press down the side of seesaw,(input force) the other side goes up. (load, output force) In the middle, there is a fixed point.Second class lever: A second class lever is where you have the load in the middle of the Fulcrum and the input force. An example would be a wheelbarrow. The basket in the middle is the load( also called the output force) the wheel at the end is the Fulcrum, and the handle that you press up and down is the input force.Third class lever: A third class lever is a lever that has a input force in between the Fulcrum and the Load. An example is a Hammer. The sharp part is the load(output force) the part you grab and swing is the input force, and the other end of the hammer is the Fulcrum.

Related Questions

What is the second string second string second fret on the guitar?

F sharp


How do you play a sharp on cello?

Do a backwards extension on the A string.


What is the input secret number of a sharp television?

1234


How can I play the C sharp major chord on the guitar?

To play the C sharp major chord on the guitar, place your index finger on the 4th fret of the A string, your ring finger on the 6th fret of the D string, and your pinky finger on the 6th fret of the G string. Strum from the A string down to the high E string.


How do you play the C sharp major guitar chord?

To play the C sharp major guitar chord, place your index finger on the 4th fret of the A string, your ring finger on the 6th fret of the D string, and your pinky finger on the 6th fret of the G string. Strum from the A string down to the high E string.


What string on a cello is f sharp?

It depends on the tuning and string, both the thickest and thinnest strings are E without being played. The order of E notes on each string is below. I go in order from the thickest string to the thinnest string, and in standard tuning. 0 for E string 7 for A string 2 for D string 9 for G string 5 for B string 0 for E string


How do you play an a sharp on the guitar?

all the frets...some are like major ntes and others are sharps like 3rd fret e string is g but 4th fret on the same string is g sharp


What is the finger fret placement for g sharp on guitar?

The finger fret placement for G sharp on the guitar starts with the 4th string on the 6th fret. The ring finger goes on the 5th string on the 6th fret and your middle finger on the 3rd string on the 5th fret.


What is the best way to play a C sharp ukulele chord?

To play a C sharp ukulele chord, place your index finger on the first fret of the fourth string, middle finger on the second fret of the third string, and ring finger on the third fret of the second string. Strum all four strings to play the C sharp chord.


How can I play the F sharp minor chord on the guitar?

To play the F sharp minor chord on the guitar, place your index finger on the 2nd fret of the low E string, your ring finger on the 4th fret of the A string, and your pinky on the 4th fret of the D string. Strum all the strings except for the low E string.


How do you play G sharp on the guitar?

Find the low E string, then put your finger on the fourth fret - thats G sharp.


How do you write a program in c sharp to identify whether a character vowels and consonants?

<html> <head> <title>Assignment1</title> </head> <body> Enter the String:<br><br> <form action="ass1.php" method="post"> Name: <input type="text" name="fname" /> <input type="submit" name="Submit" /> </form> <?php if(isset($_POST['Submit'])) { $vowels=array("a","e","i","o","u"); $length=strlen($_POST['fname']); $count = 0; for ($i = 0; $i!= $length; $i++) { if (array_search($_POST['fname'][$i], $vowels)) { $count++; } } } echo 'There are ('.$count.') vowels in the string ('. $_POST['fname'].')'; ?> </body> </html>