📝 Basic I/O

From simple console output to advanced number formatting — master C++ I/O through progressive challenges. Topics include escape sequences, stream manipulators, type conversion, precision control, and multi-base number systems.

#001 Easy

Print Text with Special Characters

Print text containing apostrophes and single quotes using cout in C++.

📚 cout
#002 Easy

Print Double Quotes in String

Learn to print strings with embedded double quotes using \" escape sequence.

📚 Escape Chars
#003 Easy

Print Literal Newline Character

Print the text "\n" without creating an actual newline using escape sequence.

📚 \\n Escape
#004 Easy

Print Percent Symbol

Print the percent (%) symbol using cout in C++.

📚 Special Chars
#005 Easy

Print Single Backslash

Print a single backslash (\) using the \\ escape sequence.

📚 \\ Escape
#006 Easy

Read and Print Integer

Learn to read integer input from user using cin and output it using cout.

📚 cin Input
#007 Easy

Read and Print Character

Read a character from user using cin and print it using cout.

📚 char Type
#008 Easy

Initialize and Print Variables

Declare and initialize two integer variables, then print them space-separated.

📚 Variables
#009 Medium

Format Numbers with Width and Fill

Master output formatting using setw, setfill, and alignment manipulators - includes complete guide!

📚 iomanip
#010 Easy

Display Numbers with Sign

Learn to display positive numbers with a + sign using the showpos manipulator - no conditionals needed!

📚 showpos
#011 Easy

Character to ASCII Value

Print the ASCII value of a character using type casting in C++.

📚 Type Cast
#012 Easy

ASCII to Character Conversion

Convert an ASCII value to its corresponding character using type casting.

📚 char Cast
#013 Medium

Format Float with Precision

Master floating-point formatting with fixed and setprecision - includes complete guide on decimal control!

📚 fixed/precision
#014 Medium

Width and Precision Combined

Combine setw and setprecision for perfectly formatted floats - with visual examples and reference to Question #9!

📚 setw + precision
#015 Medium

Dynamic Precision Control

Learn that setprecision can accept variables! Control decimal places dynamically based on user input.

📚 Variable Precision
#016 Medium

Rounding Floating-Point Numbers

Master ALL rounding techniques in C++ - complete guide to round, floor, ceil, trunc with visual examples!

📚 cmath/rounding
#017 Medium

Scientific Notation Output

Learn exponential notation with the scientific manipulator - perfect for astronomy, physics, and engineering!

📚 scientific
#018 Medium

Hexadecimal Number Output

Complete guide to number bases - hex, octal, decimal with uppercase, prefixes, padding, and more!

📚 hex/oct/dec
#019 Medium

Remove Trailing Zeros

Learn why mixing C and C++ is smart! Use printf's %g to elegantly remove trailing zeros - real-world pragmatism!

📚 C-style I/O
#020 Easy

Sum of Two Integers

Read two integers and display their sum with formatted output - perfect practice for multiple input handling!

📚 Multiple Input
#021 Easy

Absolute Difference of Two Integers

Master the abs() function from cmath library - your first step into mathematical functions in C++!

📚 cmath library
#022 Easy

Multiply Decimals with Precision

Learn to multiply large decimals and format output with fixed precision - mastering iomanip library!

📚 Precision Control
#023 Medium

Division - Quotient and Remainder

Master static_cast vs C-style casting! Learn modern C++ type conversion - a must-know for professional code!

📚 Type Casting
#024 Easy

Swap Two Numbers

Learn the classic swap algorithm with temporary variable - a fundamental pattern used everywhere!

📚 Algorithms
#025 Medium

Swap Without Temporary Variable

Master XOR bitwise magic! Learn ALL swapping techniques without temp variable - a true programmer's skill!

📚 Bitwise Operations
#026 Medium

Conditional Logic Without If-Else

Mind-bending! Solve conditional problems using pure math - no if-else allowed. Learn branch-free programming!

📚 Mathematical Logic
#027 Medium

Convert Seconds to Time Format

Master time conversion! Learn the power of division & modulo to decompose seconds into HH:MM:SS format!

📚 Time Conversion
#028 Easy

Absolute Value of Integer

Learn abs() function! Quick intro to absolute values - distance from zero concept made simple! 📚 See #21

📚 abs() Function
#029 Medium

Convert Days to Years, Weeks, and Days

Same pattern as #27! Decompose total days into years, weeks, days - the division-modulo duo returns! 🔁

📚 Unit Decomposition
🏆 #030 FINAL BOSS

The Ultimate I/O Challenge - Complete Analytics

🎯 ALL 29 CONCEPTS COMBINED! Life & Fitness Dashboard using EVERYTHING you've learned. The true test of mastery! ⭐

🏆 MASTER CHALLENGE