From bcee4d33d24ca70e589de463da0217f7d13270b9 Mon Sep 17 00:00:00 2001 From: dvorakmortonxd Date: Mon, 25 May 2026 13:13:22 +0200 Subject: [PATCH] Added an input example to the main file --- main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 20dc47f..03ce4df 100644 --- a/main.c +++ b/main.c @@ -121,8 +121,14 @@ int main() { LOIS.weight = 60; printf("Our woman is unknown, she is not %d years old and she weights %dkg. (LOIS.age and LOIS.weight).", LOIS.age, LOIS.weight); + // INPUT + printf("\n\nINPUT BELOW:\n"); // DIVIDER + char fruit[20]; //MAX 20 CHARACTERS + printf("Pick a fruit: "); + scanf("%s", fruit); + printf("\nYou choose %s as your fruit!", fruit); + // END return 0; - // THIS IS THE CURRENT END OF MY LESSON } \ No newline at end of file