C Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start C Course
Register
reverse the string 🤘👍if you want
+1
Author: Habit🧐
Dark
Public
Save
C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include
<
stdio.h
>
#include<
string.h
>
int
main
()
{
char
a
[
20
];
int
i
,
n
;
printf
(
"enter the word\n"
);
scanf
(
"%[^n]s"
,
a
);
n
=
strlen
(
a
);
for
(
i
=
n
-
1
;
i
>=
0
;
i
--)
{
printf
(
"%c"
,
a
[
i
]);
}
return
0
;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT