From df0149d828deb5965a4f7b82e4fd8bcf085c9dfa Mon Sep 17 00:00:00 2001 From: Stepan Date: Fri, 8 May 2026 20:22:55 +0300 Subject: [PATCH] add l9.c --- c/l9.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 c/l9.c diff --git a/c/l9.c b/c/l9.c new file mode 100644 index 0000000..529f791 --- /dev/null +++ b/c/l9.c @@ -0,0 +1,16 @@ +#include +#include + +int main() { + char pol[100]; + printf("Enter word "); + scanf("%s", pol); + int len = strlen(pol); + if(len > 50) { + printf("Error: too long\n"); + return 0; + } + strrev(pol); + printf("Reversed: %s\n", pol); + return 0; +} \ No newline at end of file