Mega Code Archive
Categories
/
C
/
Console
Read and output string
#include
int main(void) { char str[80]; printf("Enter a string: "); scanf("%s", str); printf("Here's your string: %s", str); return 0; }