السابق التالي
0 / 8
الوحدة النمطية DEMO-32-55DEMO-C-32

Character Echo

DEMO-C-32 • Programming in C

Browser-only practice

بيان المشكلة

Write a program that reads a single character from the user and prints it back to the screen.

This is your first step in learning input/output operations in C programming. You'll use scanf to read the character and printf to display it.

Example: If the user enters 'A', your program should output 'A'.

قيود

The input will be a printable ASCII character (ASCII values 32-126).

تنسيق الإدخال

A single character on a line by itself.

تنسيق الإخراج

The same character that was input, followed by a newline character.

حالات اختبار نموذجية

Submit runs every public testcase in this browser. Results and code never leave this device.

العينة رقم 1
عينة ظاهرة
A
A
Basic test case with an uppercase letter.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
إعدادات المحرر