commit 6ee74f273ff2847f8ffb37fa95a8140f5b4aa11c parent 1af7732665a0240a2855f8be5307afeaad32029d Author: AMIT DUTTA <amitdutta4255@gmail.com> Date: Sun, 30 Nov 2025 12:58:32 +0530 Create pc013.c Diffstat:
| A | practice-c/pc013.c | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/practice-c/pc013.c b/practice-c/pc013.c @@ -0,0 +1,9 @@ +#include <stdio.h> + +int main() { + char name[50]; + printf("Enter your name: "); + fgets(name, sizeof(name), stdin); // Read from standard input (keyboard) + printf("Hello, %s", name); // Prints the name with the newline if entered + return 0; +}+ \ No newline at end of file