answersLogoWhite

0

if (length>=10 && length<=20) {

// length is between 10 and 20, inclusive...

}

User Avatar

Wiki User

9y ago

What else can I help you with?

Continue Learning about Engineering

What is a regular expression?

In programming, a regular expression is an expression that explains a pattern for a string. A string matches a regular expression if that string follows the pattern of that regular expression. For example, you may want to create an account system, allowing usernames to only have uppercase and lowercase letters, and numbers. While a user is registering, you can check their desired username against a regular expression involving only alphanumeric characters (A-Z, a-z, 0-9). If it matches, then the username is valid to your requests. If it does not, the user has put in a character that does not follow the pattern of the regular expression. In regular expressions, you can match certain characters, match a certain quanity of characters, match the casing of characters (or just ignore it overall), and plenty more. The syntax of a regular expression varies throughout every programming language, but Perl is often used due to its wide variety of options. Perl is also incorporated into many web languages, such as PHP, making regular expressions less of a hassle. This is an example of a Perl regular expression, allowing a string with only alphanumeric characters (any character case), and an infinite length (except for a string with no length or no characters, in which the regular expression does not match the string): /^(?i)[a-z0-9]+$/


How is computer programming related to algebra?

Computer Programming is all about algebra. In algebra, you solve for variables like x and y in their simplest form, in programming, the variables can pass on values or accept values and give you the result.For eg:Find the area of a square with side 'a' units.In algebra: Area=a2.In Programming, the program can find the area by taking input from the user.float area,a;couta;area=a*a;cout


How union of two arrays in java programming?

How to combine arrays in JavaGiven two arrays:int[] array1 = ...int[] array2 = ...It's possible to combine them into one like so:int[] arrayCombined = new int[array1.length + array2.length];// copy array1 to beginning of arrayCombinedSystem.arraycopy(array1, 0, arrayCombined, 0, array1.length);// copy array2 after array1System.arraycopy(array2, 0, arrayCombined, array1.length, array2.length);


Where can array length be used in Java programming language?

in java the memory allocation can be dynamic in nature. The java array enables the user to store values of the same type in contiguous memory allocations. Arrays are always a fixed length abstracted data structure which can not be altered when required.


How many types of File Extension can be created from C plus?

Well, it depends on the length of the file-extension. If you settle for letters and numbers, it will be 36n, where n is the length.PS: your question has nothing to do with C or C++ or programming at all.

Related Questions

What expression would test for a length between 10 and 20 meters inclusive?

length &ge; 10 m and length &le; 20 m


How does HBO determine its programming schedule?

HBO determines its programming by the length of the program and rating of the program.


The length of a rectangles is 3 more than width. if L represents the length then what is a expression for the width?

The expression is L - 3.


What is the equivalent expression for distance?

Length


If two sides of a triangle are 3 and 7what is the possible lengths for the third side of the triangle?

The last side length could be between 4 units and 10 units inclusive.


Why use 'gets' is dangerous in C programming?

Because it has no length-limit.


What is an algebraic expression for five less than three times the length l?

3l - 5 is an expression for five less than three times the length l


How do you figure the length of a circle?

The circle's length (or circumference) is determined with the expression C=D(pi).


What is a variable length system?

It means that the length of something can vary, that it is not always the same length. The expression "variable length" may be used in different context, so I don't know what the item of variable length is that you heard or read about.It means that the length of something can vary, that it is not always the same length. The expression "variable length" may be used in different context, so I don't know what the item of variable length is that you heard or read about.It means that the length of something can vary, that it is not always the same length. The expression "variable length" may be used in different context, so I don't know what the item of variable length is that you heard or read about.It means that the length of something can vary, that it is not always the same length. The expression "variable length" may be used in different context, so I don't know what the item of variable length is that you heard or read about.


Are there any all-inclusive beach vacations in Jamaica?

"There are several options for all-inclusive beach vacations in Jamaica. Sandals, Beaches and Breezes all offer all-inclusive vacations. The prices vary depending on length of stay and other factors."


How will you set the length of a text field in database?

Depends on the database programming language


How do you write a algebraic expression for twice as long as the length of the string?

You can write 2X, where X is the length of the string.