CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
1
Hello, C#!Use Console.WriteLine to print exactly the text shown in Expected Output.
easyNot startedSolve
2
Print a Computed SumUse Console.WriteLine with string interpolation to print the line below, computing the number (do not hardcode 8) (see Expected Output).
easyNot startedSolve
3
Greet With InterpolationA name variable is given.
easyNot startedSolve
7
Print Two LinesUse two Console.WriteLine calls to print these two lines (see Expected Output).
easyNot startedSolve
8
Write Without a New LineConsole.Write prints WITHOUT adding a new line (unlike Console.WriteLine).
easyNot startedSolve
9
Print a NumberUse Console.WriteLine to print the number 42 (no quotes needed for a number) (see Expected Output).
easyNot startedSolve
10
Print a CalculationUse Console.WriteLine to print the result of 7 times 6 (let C# compute it) (see Expected Output).
easyNot startedSolve
11
Print a Tab Between WordsUse the tab escape sequence \t to print these two words separated by a tab (see Expected Output).
easyNot startedSolve
12
Print Quotation MarksTo put a double quote inside a string, escape it with a backslash (\").
easyNot startedSolve
13
Print a File PathA backslash inside a string must be written as \\.
easyNot startedSolve
14
Print a Boolean ResultPrint the result of the comparison 10 > 7.
easyNot startedSolve
15
Print a CharacterA char holds a single character, written with single quotes.
easyNot startedSolve
16
Concatenate Two WordsThe + operator joins two strings.
easyNot startedSolve
17
Print a Decimal NumberUse Console.WriteLine to print the decimal number 2.5 (see Expected Output).
easyNot startedSolve
18
Print a Labeled ScoreA score variable is given.
easyNot startedSolve
19
Print a Multiplication SentenceUse string interpolation to print this exact line, computing the product (not hardcoding 12) (see Expected Output).
easyNot startedSolve
227
Say Hello to the WorldEvery programmer's first program prints a friendly greeting.
easyNot startedSolve
228
Greet a Named FriendString interpolation lets you drop a variable's value straight into a string using $"..." and curly braces.
easyNot startedSolve
229
Three Lines in a RowEach call to Console.WriteLine prints its text and then starts a new line, so calling it three times produces three separate lines.
easyNot startedSolve
230
Colors on One LineConsole.Write prints text WITHOUT moving to a new line, while Console.WriteLine ends the line.
easyNot startedSolve
231
Print How Old I AmYou can interpolate numbers as easily as text.
easyNot startedSolve
232
Show a SumCurly braces in an interpolated string can hold a math expression, not just a variable.
easyNot startedSolve
233
Print a Quoted SentenceTo include a double quote inside a string, you escape it with a backslash: \".
easyNot startedSolve
317
Print Three LinesPrint these three words, each on its own line (see Expected Output).
easyNot startedSolve
318
Print a Blank Line Between WordsPrint Top, then an empty line, then Bottom, so the output is exactly what is shown in Expected Output.
easyNot startedSolve
319
Print a Word in UppercaseThe variable word holds hello.
easyNot startedSolve
320
Print a Word in LowercaseThe variable word holds HELLO.
easyNot startedSolve
321
Print the Length of a WordThe variable word holds banana.
easyNot startedSolve
322
Print a Horizontal LinePrint a horizontal line made of exactly 20 dash characters (-) (see Expected Output).
easyNot startedSolve
323
Print a Repeated CharacterPrint a row of exactly 5 asterisks () (see Expected Output).
easyNot startedSolve
324
Print a Negative NumberDeclare an int named temperature with the value -42 and print it (see Expected Output).
easyNot startedSolve
325
Print the First Letter of a WordThe variable word holds Coding.
easyNot startedSolve
326
Print Two Lines with One StatementUsing a single Console.WriteLine call, print two lines (see Expected Output).
easyNot startedSolve
327
Print on One Line with Two WritesUse Console.Write twice to put Hello, and then World on the same line, then end the line.
easyNot startedSolve
328
Join a Word and a NumberThe variable age holds the number 25.
easyNot startedSolve
329
Print the Sum of Three NumbersThree int variables a, b, and c hold 3, 5, and 7.
easyNot startedSolve
20
Format to Two DecimalsA price of 19.5 is given.
mediumNot startedSolve
21
Round to Two DecimalsA value of 3.14159 is given.
mediumNot startedSolve
22
Print a Currency AmountA price of 19.5 is given.
mediumNot startedSolve
23
Build a Sentence from VariablesA name and an age are given.
mediumNot startedSolve
24
Right-Align a NumberAn alignment value in an interpolation pads a value to a width.
mediumNot startedSolve
25
Two-Line Label BlockUsing a SINGLE Console.WriteLine with a \n newline and interpolation, print these two lines (see Expected Output).
mediumNot startedSolve
26
Print Yes or No with a TernaryA bool isOpen is true.
mediumNot startedSolve
27
Print the Larger of TwoTwo ints a and b are given.
mediumNot startedSolve
28
Print Division and RemainderUsing interpolation, print the integer quotient and remainder of 17 divided by 5 in the exact format shown in Expected Output.
mediumNot startedSolve
234
Simple Shopping ReceiptCombine interpolation, arithmetic, and multiple lines.
mediumNot startedSolve
235
Build a Progress LineMix Console.Write with interpolation to assemble one line from several pieces.
mediumNot startedSolve
236
Print a Comparison ResultYou can interpolate the result of a comparison, which is a boolean.
mediumNot startedSolve
330
Print a Number in HexadecimalThe variable n holds 255.
mediumNot startedSolve
331
Print a Number in BinaryThe variable n holds 10.
mediumNot startedSolve
332
Pad a Number with Leading ZerosThe variable n holds 42.
mediumNot startedSolve
333
Print a Number with Thousands SeparatorsThe variable n holds 1000000.
mediumNot startedSolve
334
Print a Character from a CodeThe variable code holds 65.
mediumNot startedSolve
335
Print a Character's CodeThe variable letter holds the character A.
mediumNot startedSolve
336
Left-Align a Word in a FieldPrint the word Hi left-aligned in a field 8 characters wide, immediately followed by a |.
mediumNot startedSolve
337
Interpolate with a Format SpecifierThe variable price holds the double 3.5.
mediumNot startedSolve
338
Read a Name and GreetRead one line of input containing a name, then print a greeting.
mediumNot startedSolve
339
Print a Number with an Explicit Plus SignThe variable n holds the positive number 7.
hardNot startedSolve
340
Print a Right-Aligned Two-Column RowPrint a single row with two columns: the label Apples left-aligned in a field 10 wide, immediately followed by the number 5 right-aligned in a field 5 wide.
hardNot startedSolve
341
Read Two Numbers and Print Their SumRead two lines of input, each containing an integer, then print their sum.
hardNot startedSolve