I'm trying to create a small program using C programming. Essentially while running in the console, the program should receive a sentence from a user.
Deliverables:
- I want to be able to ask users their name
- prompt the user to enter a write a short sentence
- output a user name and their sentence prompt
- when the user types into the text area and presses Enter, it will Submit.
**Not sure if I have to create an HTML file to connect my c file to the form for the submit action. Below is what I have made so far. Thank you!
#include <stdio.h>
int main()
{
char word[100];
char name;
printf("what is your name? ");
scanf("%c", &name);
printf("Enter your sentence: ");
scanf("%s", word);
printf("Output : %s", word);
return 0;
}