Added an input example to the main file

This commit is contained in:
dvorakmortonxd 2026-05-25 13:13:22 +02:00
commit bcee4d33d2

8
main.c
View file

@ -121,8 +121,14 @@ int main() {
LOIS.weight = 60; 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); 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 // END
return 0; return 0;
// THIS IS THE CURRENT END OF MY LESSON // THIS IS THE CURRENT END OF MY LESSON
} }