Added an input example to the main file
This commit is contained in:
parent
afd934132c
commit
bcee4d33d2
1 changed files with 7 additions and 1 deletions
8
main.c
8
main.c
|
|
@ -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
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue