CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
1
Age VariableUsing an integer, create a variable to hold your age (use any age value you'd like, such as 25).
easyNot startedSolve
2
New Line CharacterUse the newline escape sequence \n in one printf statement to display the following text on two separate lines (see Expected Output).
easyNot startedSolve
3
Printf String VariableCreate a char array (string) with the value "Alice" and use printf with %s to display it in the exact sentence shown in Expected Output.
easyNot startedSolve
4
Character OutputCreate a char variable with the value '#' and use printf with %c to display it in the exact sentence shown in Expected Output.
easyNot startedSolve
5
Integer OutputCreate an int variable with the value 100 and use printf with %d to display it in the exact sentence shown in Expected Output.
easyNot startedSolve
6
Multiple VariablesCreate a char array with the value "Sarah" and an int variable with the value 22.
easyNot startedSolve
7
Float Two DecimalsCreate a float variable with the value 9.8765f.
easyNot startedSolve
166
Hello MessageUse printf to print exactly this text (no quotes, no trailing newline) (see Expected Output).
easyNot startedSolve
167
Addition EquationUse printf with a format specifier to print this exact line, where the result is computed (not typed literally) (see Expected Output).
easyNot startedSolve
168
Print Two LinesUse a single printf with a newline escape to print these two lines (see Expected Output).
easyNot startedSolve
169
Tab Separated ValuesUse the tab escape sequence to print three numbers separated by tabs (see Expected Output).
easyNot startedSolve
170
Percent Sign OutputIn a printf format string, a literal percent sign must be written as %%.
easyNot startedSolve
171
Quotation MarksTo put a double quote inside a string, escape it with a backslash (\").
easyNot startedSolve
172
Backslash in a PathA backslash in a string must be written as \\ (two backslashes).
easyNot startedSolve
173
Negative IntegerUse printf with %d to print a negative number (see Expected Output).
easyNot startedSolve
174
Multiplication EquationUse printf with a format specifier to print this exact line, computing the product (not typing it literally) (see Expected Output).
easyNot startedSolve
176
Welcome BannerWrite a program that prints a single welcome message.
easyNot startedSolve
177
Introduce YourselfTwo variables have already been created for you: a name (a string) and an age (an integer).
easyNot startedSolve
178
Three Lines in a RowPrint the words Ready, Set, and Go!
easyNot startedSolve
179
Tab-Separated ColorsPrint the three color names Red, Green, and Blue on one line, separated by tab stops instead of spaces.
easyNot startedSolve
180
Print a TemperatureA double variable holding a temperature has been created for you.
easyNot startedSolve
181
Show a GradeA single character variable holding a letter grade has been created for you.
easyNot startedSolve
182
Count Two FruitsTwo integer variables have been created for you: a count of apples and a count of oranges.
easyNot startedSolve
246
Hexadecimal OutputThe integer n = 255 is given.
easyNot startedSolve
247
Octal OutputThe integer n = 64 is given.
easyNot startedSolve
248
Unsigned Integer OutputAn unsigned int n = 4000000000 is given (a value too large for a signed int).
easyNot startedSolve
249
Long Integer OutputA long n = 1234567890 is given.
easyNot startedSolve
250
Character from ASCII CodeAn ASCII code code = 65 is given.
easyNot startedSolve
251
ASCII Value of a CharacterA character ch = 'A' is given.
easyNot startedSolve
252
Print with putsUse the puts function to print the line shown in Expected Output.
easyNot startedSolve
253
Print with putcharUse putchar to print the two characters H and i (with no newline) (see Expected Output).
easyNot startedSolve
254
Dollar AmountA price price = 49.99 is given.
easyNot startedSolve
255
Print Double Default PrecisionA value x = 3.5 is given.
easyNot startedSolve
256
Leading Plus SignAn integer n = 42 is given.
easyNot startedSolve
257
Hexadecimal with PrefixAn integer n = 255 is given.
easyNot startedSolve
258
Scientific NotationA value x = 31400.0 is given.
easyNot startedSolve
8
Mixed Escape SequencesUse one printf statement with both \n and \t to display the formatted text shown in Expected Output.
mediumNot startedSolve
9
Subtraction EquationCreate two integer variables with the values 15 and 8.
mediumNot startedSolve
10
Product with FloatCreate an int variable with the value 5 and a float variable with the value 2.5f.
mediumNot startedSolve
11
Float Three DecimalsCreate a float variable with the value 12.34567f.
mediumNot startedSolve
12
Receipt FormattingCreate three float variables: price1 = 12.99f, price2 = 8.50f, and price3 = 15.25f.
mediumNot startedSolve
13
Zero PaddingCreate four integer variables with the values 5, 42, 156, and 1003.
mediumNot startedSolve
14
Temperature ConversionCreate a float variable for Fahrenheit temperature with the value 98.6f.
mediumNot startedSolve
15
Complex Product DisplayCreate variables: char item[] = "Laptop", int quantity = 3, float price = 899.99f.
mediumNot startedSolve
175
Right Aligned NumbersA field width in a format specifier right-aligns a value in a column.
mediumNot startedSolve
183
Mini Receipt TableBuild a tiny two-row table using tabs to line up the columns.
mediumNot startedSolve
184
Quiz Score with PercentYou are given a subject name (a string) and a score (an integer).
mediumNot startedSolve
185
Draw a Little BoxPrint a small three-line box drawn with plus, dash, and pipe characters, with the letter C centered inside.
mediumNot startedSolve
259
Left Aligned TextPrint the word Hi left-aligned in a field 8 characters wide, surrounded by | characters (see Expected Output).
mediumNot startedSolve
260
Width and PrecisionA value x = 3.14159 is given.
mediumNot startedSolve
261
Average of Three IntegersThree integers a = 3, b = 4, c = 6 are given.
mediumNot startedSolve
262
Count from 1 to 5Using a loop, print the digits 1 through 5 with no spaces or newlines between them (see Expected Output).
mediumNot startedSolve
263
Even Numbers to TenUsing a loop, print the even numbers from 2 to 10, separated by single spaces (see Expected Output).
mediumNot startedSolve
264
Multiplication Table RowUsing a loop, print the first five multiples of 5, separated by single spaces (see Expected Output).
mediumNot startedSolve
265
Countdown from FiveUsing a loop, print a countdown from 5 down to 1, separated by single spaces (see Expected Output).
mediumNot startedSolve
266
Echo an IntegerRead one integer from standard input and print it back in this exact format (no trailing newline) (see Expected Output).
mediumNot startedSolve
267
Square of StarsUsing nested loops, print a 3x3 square of characters.
hardNot startedSolve
268
Right Triangle of StarsUsing nested loops, print a right triangle of .
hardNot startedSolve
269
Number TriangleUsing nested loops, print a number triangle.
hardNot startedSolve
270
Hollow BoxUsing nested loops, print a hollow rectangle that is 4 columns wide and 3 rows tall.
hardNot startedSolve