FIND YOUR NEXT FEW LINES

Results for “multi”

Small, practical examples. Search by task or narrow things down below.

92 snippets foundClear filters
JavaScriptGetting Started

Handle three possible outcomes

JavaScript: Check high, normal and low values with an ordered conditional chain.

JavaScript✓ Tested
TypeScriptGetting Started

Handle three possible outcomes

TypeScript: Check high, normal and low values with an ordered conditional chain.

TypeScript✓ Tested
C++Getting Started

Handle three possible outcomes

C++: Check high, normal and low values with an ordered conditional chain.

C++✓ Tested
CGetting Started

Handle three possible outcomes

C: Check high, normal and low values with an ordered conditional chain.

C✓ Tested
GoGetting Started

Return two values from a function

Return two values from a function using a complete Go program with explicit sample inputs.

Go✓ Tested
jQueryForm serialization & state

Set several selected options

jQuery: Passing an array to val selects matching values in a multiple select.

jQuery✓ Tested
C++Ordering & set operations

Sort records by two fields

C++: Tuple comparison implements lexicographic ordering across several keys.

C++✓ Tested
TypeScriptUtilities & async

Await several independent results

Preserve input order while awaiting multiple promises.

Promise.all✓ Tested
PythonGetting Started

Calculate a simple total

Python: Multiply a unit price by a quantity, then add a delivery fee.

Python✓ Tested
C#Getting Started

Calculate a simple total

C#: Multiply a unit price by a quantity, then add a delivery fee.

C#✓ Tested
JavaGetting Started

Calculate a simple total

Java: Multiply a unit price by a quantity, then add a delivery fee.

Java✓ Tested
JavaScriptGetting Started

Calculate a simple total

JavaScript: Multiply a unit price by a quantity, then add a delivery fee.

JavaScript✓ Tested