CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
16
Read Single IntegerWrite a program that reads a single integer from the user using cin and prints it back with the message: You entered: [number] Use the >> operator with cin to read the integer input.
easyNot startedSolve
17
Read String InputWrite a program that reads a single word (string) from the user using cin 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] You can read the inputs with two separate cin statements or chain them like: cin >> a >> b;
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 cin to read the float, then cout with fixed and setprecision(2).
easyNot startedSolve
20
Read Character InputWrite a program that reads a single character from the user and prints: You pressed: [character] Use cin >> to read the character.
easyNot startedSolve
263
Read and Double a NumberRead a single integer from input, then print double its value (the number times 2).
easyNot startedSolve
264
Add Two Numbers from InputRead two integers from input (separated by a space) and print their sum.
easyNot startedSolve
265
Multiply Two Numbers from InputRead two integers from input (separated by a space) and print their product.
easyNot startedSolve
266
Subtract Two Numbers from InputRead two integers from input (separated by a space) and print the first minus the second.
easyNot startedSolve
267
Square of an Input NumberRead a single integer and print its square (the number multiplied by itself).
easyNot startedSolve
268
Increment an Input NumberRead a single integer and print the value that comes right after it (the number plus 1).
easyNot startedSolve
269
Greet by NameRead a single word (a name) from input and print a greeting in this exact format: Hello, [name]!
easyNot startedSolve
270
Sum of Three Numbers from InputRead three integers from input (separated by spaces) and print their sum.
easyNot startedSolve
271
Half of an Input NumberRead a single integer and print half of it using integer division (the fractional part is dropped).
easyNot startedSolve
272
Add Two Decimal NumbersRead two decimal (floating-point) numbers from input and print their sum rounded to exactly two decimal places.
easyNot startedSolve
273
Negate an Input NumberRead a single integer and print its negation (flip the sign).
easyNot startedSolve
344
Product of Two DoublesRead two floating-point numbers from input and print their product with exactly 2 decimal places.
easyNot startedSolve
345
Cube of an Input NumberRead a single integer from input and print its cube (the number multiplied by itself twice).
easyNot startedSolve
346
Swap Two NumbersRead two integers a and b from input, swap their values using a temporary variable, then print them on one line separated by a single space (the swapped order).
easyNot startedSolve
349
Absolute Value of InputRead a single integer from input and print its absolute value (the number without a negative sign).
easyNot startedSolve
350
Fahrenheit to Celsius from InputRead a temperature in Fahrenheit (a floating-point number) from input and print the equivalent Celsius temperature with exactly 2 decimal places.
easyNot startedSolve
351
Triple an Input NumberRead a single integer from input and print three times its value.
easyNot startedSolve
352
Total Cost from Price and QuantityRead a floating-point unit price and an integer quantity from input, then print the total cost (price times quantity) with exactly 2 decimal places.
easyNot startedSolve
356
Length of Input StringRead a single word (no spaces) from input and print how many characters it contains.
easyNot startedSolve
357
Concatenate Two WordsRead two words from input and print them joined together with no space between them.
easyNot startedSolve
360
Last Digit of a NumberRead a non-negative integer from input and print only its last digit.
easyNot startedSolve
362
Kelvin to Celsius from InputRead a temperature in Kelvin (a floating-point number) from input and print the equivalent Celsius temperature with exactly 2 decimal places.
easyNot startedSolve
366
Print Larger then SmallerRead two integers from input and print the larger one first, then the smaller one, on a single line separated by a space.
easyNot startedSolve
367
Minimum of Two from InputRead two integers from input and print the smaller of the two.
easyNot startedSolve
21
Read Full Line with getlineWrite a program that reads a full line of text (including spaces) from the user using getline and prints: You said: [text] Use getline(cin, variableName) to read the entire line including spaces.
mediumNot startedSolve
22
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 using fixed and setprecision(2).
mediumNot startedSolve
23
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
24
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 fixed and setprecision(2).
mediumNot startedSolve
274
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
275
Even or Odd from InputRead a single integer and print 'Even' if it is even, or 'Odd' if it is odd.
mediumNot startedSolve
276
Maximum of Two from InputRead two integers from input and print the larger of the two.
mediumNot startedSolve
277
Celsius to Fahrenheit from InputRead an integer Celsius temperature and print the Fahrenheit equivalent using F = C 9 / 5 + 32.
mediumNot startedSolve
278
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
343
Read Two Doubles and Print AverageRead two floating-point numbers from input (separated by a space or newline) and print their average with exactly 2 decimal places.
mediumNot startedSolve
347
Circle Area from RadiusRead a floating-point radius from input and print the area of the circle with exactly 2 decimal places.
mediumNot startedSolve
348
Quotient and RemainderRead two integers a and b from input.
mediumNot startedSolve
354
Multiplication Table of InputRead a single integer n from input and print its multiplication table from 1 to 5, one line per row, in this exact format.
mediumNot startedSolve
355
Factorial of Input NumberRead a non-negative integer n from input and print its factorial (the product of all integers from 1 to n).
mediumNot startedSolve
359
Convert Seconds to Minutes and SecondsRead a total number of seconds (an integer) from input and print how many whole minutes and leftover seconds it represents, in this exact format.
mediumNot startedSolve
361
Sum of Even Numbers up to NRead a positive integer n from input and print the sum of all even numbers from 1 to n inclusive.
mediumNot startedSolve
363
Compute Speed from Distance and TimeRead a distance and a time (both floating-point numbers) from input and print the speed (distance divided by time) with exactly 2 decimal places.
mediumNot startedSolve
365
Add Sales Tax to PriceRead a floating-point price from input and print the final price after adding 8% sales tax, with exactly 2 decimal places.
mediumNot startedSolve
353
Power of Two IntegersRead a base and an exponent (both non-negative integers) from input and print the base raised to that exponent.
hardNot startedSolve
358
Reverse Digits of a NumberRead a positive integer from input and print the number formed by reversing its digits.
hardNot startedSolve
364
Digit Sum of a NumberRead a positive integer from input and print the sum of its digits.
hardNot startedSolve