CJCoding With Joseph
TitleTopicsAction
1
Age VariableUsing an integer, create a variable to hold your age (use any age value you'd li...
easy○ Not Started
Printing
Solve
2
New Line CharacterUse the newline escape sequence \n in one printf statement to display the follow...
easy○ Not Started
Printing
Solve
3
Printf String VariableCreate a char array (string) with the value "Alice" and use printf with %s to di...
easy○ Not Started
Printing
Solve
4
Character OutputCreate a char variable with the value '#' and use printf with %c to display it i...
easy○ Not Started
Printing
Solve
5
Integer OutputCreate an int variable with the value 100 and use printf with %d to display it i...
easy○ Not Started
Printing
Solve
6
Multiple VariablesCreate a char array with the value "Sarah" and an int variable with the value 22...
easy○ Not Started
Printing
Solve
7
Float Two DecimalsCreate a float variable with the value 9.8765f. Use printf with %.2f to display:...
easy○ Not Started
Printing
Solve
166
Hello MessageUse printf to print exactly this text (no quotes, no trailing newline): Hello, ...
easy○ Not Started
Printing
Solve
167
Addition EquationUse printf with a format specifier to print this exact line, where the result is...
easy○ Not Started
Printing
Solve
168
Print Two LinesUse a single printf with a newline escape to print these two lines: Line one Li...
easy○ Not Started
Printing
Solve
169
Tab Separated ValuesUse the tab escape sequence to print three numbers separated by tabs: 1 2 3 (E...
easy○ Not Started
Printing
Solve
170
Percent Sign OutputIn a printf format string, a literal percent sign must be written as %%. Print t...
easy○ Not Started
Printing
Solve
171
Quotation MarksTo put a double quote inside a string, escape it with a backslash (\"). Print th...
easy○ Not Started
Printing
Solve
172
Backslash in a PathA backslash in a string must be written as \\ (two backslashes). Print this exac...
easy○ Not Started
Printing
Solve
173
Negative IntegerUse printf with %d to print a negative number: -42...
easy○ Not Started
Printing
Solve
174
Multiplication EquationUse printf with a format specifier to print this exact line, computing the produ...
easy○ Not Started
Printing
Solve
176
Hexadecimal OutputThe integer `n = 255` is given. Print it in lowercase hexadecimal using `%x`: f...
easy○ Not Started
Printing
Solve
177
Octal OutputThe integer `n = 64` is given. Print it in octal (base 8) using `%o`: 100 Use ...
easy○ Not Started
Printing
Solve
178
Unsigned Integer OutputAn `unsigned int n = 4000000000` is given (a value too large for a signed `int`)...
easy○ Not Started
Printing
Solve
179
Long Integer OutputA `long n = 1234567890` is given. Print it using the `%ld` conversion: 12345678...
easy○ Not Started
Printing
Solve
180
Character from ASCII CodeAn ASCII code `code = 65` is given. Print the character it represents using `%c`...
easy○ Not Started
Printing
Solve
181
ASCII Value of a CharacterA character `ch = 'A'` is given. Print its numeric ASCII value using `%d`: 65 ...
easy○ Not Started
Printing
Solve
182
Print with putsUse the `puts` function to print this line: Hello, World! Note: `puts` automat...
easy○ Not Started
Printing
Solve
183
Print with putcharUse `putchar` to print the two characters `H` and `i` (with no newline): Hi `p...
easy○ Not Started
Printing
Solve
184
Dollar AmountA price `price = 49.99` is given. Print it as a dollar amount with two decimals:...
easy○ Not Started
Printing
Solve
185
Print Double Default PrecisionA value `x = 3.5` is given. Print it with the plain `%f` conversion, which defau...
easy○ Not Started
Printing
Solve
186
Leading Plus SignAn integer `n = 42` is given. Print it so a sign is always shown, even for posit...
easy○ Not Started
Printing
Solve
187
Hexadecimal with PrefixAn integer `n = 255` is given. Print it in hexadecimal including the `0x` prefix...
easy○ Not Started
Printing
Solve
188
Scientific NotationA value `x = 31400.0` is given. Print it in scientific notation using `%e`: 3.1...
easy○ Not Started
Printing
Solve
8
Mixed Escape SequencesUse one printf statement with both \n and \t to display the following formatted ...
medium○ Not Started
Printing
Solve
9
Subtraction EquationCreate two integer variables with the values 15 and 8. Use one printf statement ...
medium○ Not Started
Printing
Solve
10
Product with FloatCreate an int variable with the value 5 and a float variable with the value 2.5f...
medium○ Not Started
Printing
Solve
11
Float Three DecimalsCreate a float variable with the value 12.34567f. Use printf with %.3f to displa...
medium○ Not Started
Printing
Solve
12
Receipt FormattingCreate three float variables: price1 = 12.99f, price2 = 8.50f, and price3 = 15.2...
medium○ Not Started
Printing
Solve
13
Zero PaddingCreate four integer variables with the values 5, 42, 156, and 1003. Use printf t...
medium○ Not Started
Printing
Solve
14
Temperature ConversionCreate a float variable for Fahrenheit temperature with the value 98.6f. Convert...
medium○ Not Started
Printing
Solve
15
Complex Product DisplayCreate variables: char item[] = "Laptop", int quantity = 3, float price = 899.99...
medium○ Not Started
Printing
Solve
175
Right Aligned NumbersA field width in a format specifier right-aligns a value in a column. Using %5d ...
medium○ Not Started
Printing
Solve
189
Left Aligned TextPrint the word `Hi` left-aligned in a field 8 characters wide, surrounded by `|`...
medium○ Not Started
Printing
Solve
190
Width and PrecisionA value `x = 3.14159` is given. Print it rounded to 2 decimals, right-aligned in...
medium○ Not Started
Printing
Solve
191
Average of Three IntegersThree integers `a = 3`, `b = 4`, `c = 6` are given. Print their average to 2 dec...
medium○ Not Started
Printing
Solve
192
Count from 1 to 5Using a loop, print the digits 1 through 5 with no spaces or newlines between th...
medium○ Not Started
Printing
Solve
193
Even Numbers to TenUsing a loop, print the even numbers from 2 to 10, separated by single spaces: ...
medium○ Not Started
Printing
Solve
194
Multiplication Table RowUsing a loop, print the first five multiples of 5, separated by single spaces: ...
medium○ Not Started
Printing
Solve
195
Countdown from FiveUsing a loop, print a countdown from 5 down to 1, separated by single spaces: 5...
medium○ Not Started
Printing
Solve
196
Echo an IntegerRead one integer from standard input and print it back in this exact format (no ...
medium○ Not Started
Printing
Solve
197
Square of StarsUsing nested loops, print a 3x3 square of `*` characters. Each of the 3 rows has...
hard○ Not Started
Printing
Solve
198
Right Triangle of StarsUsing nested loops, print a right triangle of `*`. Row 1 has 1 star, row 2 has 2...
hard○ Not Started
Printing
Solve
199
Number TriangleUsing nested loops, print a number triangle. Row `r` prints the numbers 1 throug...
hard○ Not Started
Printing
Solve
200
Hollow BoxUsing nested loops, print a hollow rectangle that is 4 columns wide and 3 rows t...
hard○ Not Started
Printing
Solve