CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
16
Read Single IntegerWrite a program that reads a single integer from the user using scanf and prints it back with the message: You entered: [number] Use %d format specifier with scanf to read the integer, and make sure to use the & operator before the variable name in scanf.
easyNot startedSolve
17
Read String with scanfWrite a program that reads a single word (string) from the user using scanf and prints: Hello, [name]!
easyNot startedSolve
18
Read Two IntegersWrite a program that reads two integers from the user and displays their sum: Sum: [result] Use scanf once with two %d format specifiers to read both integers in a single call.
easyNot startedSolve
19
Read Float InputWrite a program that reads a float value from the user and prints it with 2 decimal places: You entered: [number] Use %f format specifier with scanf to read the float, and %.2f with printf to display it with 2 decimal places.
easyNot startedSolve
20
Read Character InputWrite a program that reads a single character from the user and prints: You pressed: [character] Use %c format specifier with scanf to read the character.
easyNot startedSolve
149
Read and Double a NumberRead a single integer from input, then print double its value (the number times 2).
easyNot startedSolve
150
Add Two Numbers from InputRead two integers from input (separated by a space) and print their sum.
easyNot startedSolve
151
Multiply Two Numbers from InputRead two integers from input (separated by a space) and print their product.
easyNot startedSolve
152
Subtract Two Numbers from InputRead two integers from input (separated by a space) and print the first minus the second.
easyNot startedSolve
153
Square of an Input NumberRead a single integer and print its square (the number multiplied by itself).
easyNot startedSolve
154
Increment an Input NumberRead a single integer and print the value that comes right after it (the number plus 1).
easyNot startedSolve
155
Greet by NameRead a single word (a name) from input and print a greeting in this exact format: Hello, [name]!
easyNot startedSolve
156
Sum of Three Numbers from InputRead three integers from input (separated by spaces) and print their sum.
easyNot startedSolve
157
Half of an Input NumberRead a single integer and print half of it using integer division (the fractional part is dropped).
easyNot startedSolve
158
Add Two Decimal NumbersRead two decimal (floating-point) numbers from input and print their sum rounded to exactly two decimal places.
easyNot startedSolve
159
Negate an Input NumberRead a single integer and print its negation (flip the sign).
easyNot startedSolve
186
Echo an IntegerWrite a program that reads a single whole number from standard input and prints it back exactly as it was entered, with nothing extra.
easyNot startedSolve
187
Add Two IntegersRead two whole numbers from standard input, separated by a space, then print their sum.
easyNot startedSolve
188
Read and Round a FloatRead one decimal number from standard input and print it back rounded to exactly two decimal places.
easyNot startedSolve
189
Echo a CharacterRead a single character from standard input and print that same character back with nothing else.
easyNot startedSolve
190
Greet by Name (Practice)Read a single word (a person's first name with no spaces) from standard input, then print a greeting in the exact form Hello, NAME!
easyNot startedSolve
191
Multiply Two FloatsRead two decimal numbers separated by a space from standard input and print their product, rounded to exactly two decimal places.
easyNot startedSolve
192
Square of a NumberRead a single whole number from standard input and print its square (the number multiplied by itself).
easyNot startedSolve
296
Triple an Input NumberRead an integer n from standard input and print three times its value (n 3).
easyNot startedSolve
297
Cube of an Input NumberRead an integer n from standard input and print its cube (n n n).
easyNot startedSolve
298
Decrement an Input NumberRead an integer n from standard input and print the value one less than it (n - 1).
easyNot startedSolve
299
Divide Two Numbers from InputRead two integers a and b from standard input (in that order) and print the result of integer division a / b.
easyNot startedSolve
300
Remainder of Two Numbers from InputRead two integers a and b from standard input (in that order) and print the remainder of a divided by b using the modulo operator %.
easyNot startedSolve
301
Product of Three Numbers from InputRead three integers a, b, and c from standard input (in that order) and print their product (a b c).
easyNot startedSolve
302
Minimum of Two from InputRead two integers a and b from standard input (in that order) and print the smaller of the two.
easyNot startedSolve
303
Convert Hours to Minutes from InputRead a whole number of hours from standard input and print how many minutes that is (each hour has 60 minutes).
easyNot startedSolve
304
Convert Days to Hours from InputRead a whole number of days from standard input and print how many hours that is (each day has 24 hours).
easyNot startedSolve
305
Kilograms to Grams from InputRead a whole number of kilograms from standard input and print how many grams that is (each kilogram has 1000 grams).
easyNot startedSolve
306
Read Two Integers on Separate LinesRead two integers a and b from standard input (in that order) and print them back with a on the first line and b on the second line.
easyNot startedSolve
307
ASCII Value of a CharacterRead a single character from standard input and print its ASCII code (its numeric value) as an integer.
easyNot startedSolve
308
Read Integer and Print Absolute ValueRead an integer n from standard input and print its absolute value (drop any negative sign).
easyNot startedSolve
21
Simple Calculator InputWrite a program that reads two float numbers from the user and displays all four basic operations: Addition: [result] Subtraction: [result] Multiplication: [result] Division: [result] All results should be displayed with 2 decimal places.
mediumNot startedSolve
22
Age Calculator InputWrite a program that reads a person's name (single word) and age, then calculates and displays their age in 10 years: Hello [name], in 10 years you will be [age] years old!
mediumNot startedSolve
23
Rectangle Area InputWrite a program that reads the length and width of a rectangle as floats and calculates the area: Area: [result] Display the area with 2 decimal places using %.2f.
mediumNot startedSolve
160
Sum from 1 to InputRead an integer N, then use a loop to add up all the integers from 1 to N and print the total.
mediumNot startedSolve
161
Even or Odd from InputRead a single integer and print 'Even' if it is even, or 'Odd' if it is odd.
mediumNot startedSolve
162
Maximum of Two from InputRead two integers from input and print the larger of the two.
mediumNot startedSolve
163
Average of Three from InputRead three integers from input and print their integer average (the sum divided by 3, dropping any remainder).
mediumNot startedSolve
164
Celsius to Fahrenheit from InputRead an integer Celsius temperature and print the Fahrenheit equivalent using F = C 9 / 5 + 32.
mediumNot startedSolve
165
Countdown from InputRead an integer N, then use a loop to print the numbers from N down to 1 on one line, separated by single spaces.
mediumNot startedSolve
193
Name and Age SentenceRead a person's first name (a single word) and their age (a whole number) from standard input, separated by a space, then print a sentence in the exact form NAME is AGE years old.
mediumNot startedSolve
194
Sum and Average of Three IntegersRead three whole numbers separated by spaces from standard input.
mediumNot startedSolve
195
Celsius to FahrenheitRead a temperature in degrees Celsius (a decimal number) from standard input and convert it to Fahrenheit using the formula F = C 9 / 5 + 32.
mediumNot startedSolve
309
Maximum of Three from InputRead three integers a, b, and c from standard input (in that order) and print the largest of the three.
mediumNot startedSolve
310
Minimum of Three from InputRead three integers a, b, and c from standard input (in that order) and print the smallest of the three.
mediumNot startedSolve
311
Quotient and Remainder from InputRead two integers a and b from standard input (in that order).
mediumNot startedSolve
312
Add Sales Tax to a PriceRead a price (a decimal number) from standard input, add 8% sales tax, and print the total rounded to exactly two decimal places.
mediumNot startedSolve
313
Circle Area from InputRead a circle's radius (a decimal number) from standard input and print its area rounded to two decimal places.
mediumNot startedSolve
314
Circle Circumference from InputRead a circle's radius (a decimal number) from standard input and print its circumference rounded to two decimal places.
mediumNot startedSolve
315
Positive, Negative, or Zero from InputRead an integer n from standard input.
mediumNot startedSolve
316
Divisible by 5 from InputRead an integer n from standard input.
mediumNot startedSolve
317
Fahrenheit to Celsius from InputRead a temperature in Fahrenheit (a decimal number) from standard input and print the equivalent Celsius temperature rounded to one decimal place.
mediumNot startedSolve
318
Factorial from InputRead a non-negative integer n from standard input and print n!
hardNot startedSolve
319
Sum of Even Numbers up to InputRead an integer n from standard input and print the sum of all even numbers from 1 through n (inclusive).
hardNot startedSolve
320
Multiplication Table from InputRead an integer n from standard input and print its multiplication table from 1 to 10.
hardNot startedSolve