+ 6

Reverse string

Hello Everyone, please! How can I reverse a string using c++

4th Aug 2020, 5:56 AM
Ibrahim Kelly
Ibrahim Kelly - avatar
8 Answers
4th Aug 2020, 8:33 AM
Ibrahim Kelly
Ibrahim Kelly - avatar
+ 3
https://code.sololearn.com/cLI6XKV2914t/?ref=app
4th Aug 2020, 8:36 AM
Nilesh
Nilesh - avatar
+ 3
Thank you so much! I'll try to understand it before using it. 👍
4th Aug 2020, 8:38 AM
Ibrahim Kelly
Ibrahim Kelly - avatar
+ 3
Ok
5th Aug 2020, 9:55 PM
Ibrahim Kelly
Ibrahim Kelly - avatar
+ 2
You can have a look to the code playground in think there areany such programs 😅
4th Aug 2020, 6:18 AM
Nilesh
Nilesh - avatar
+ 2
Here's my version in Python, but I'm a beginner in c++
4th Aug 2020, 8:35 AM
Ibrahim Kelly
Ibrahim Kelly - avatar
+ 1
just using without any predef functions https://code.sololearn.com/cCdZXXcyxVYk/?ref=app
5th Aug 2020, 9:46 PM
george
george - avatar
+ 1
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String a = scanner.nextLine(); String b = new StringBuilder(a).reverse().toString(); System.out.println(b); } }
24th May 2021, 12:59 PM
saravanan manickam