+ 6
Reverse string
Hello Everyone, please! How can I reverse a string using c++
8 Answers
+ 3
https://code.sololearn.com/cLI6XKV2914t/?ref=app
+ 3
Thank you so much!
I'll try to understand it before using it. đ
+ 3
Ok
+ 2
You can have a look to the code playground in think there areany such programs đ
+ 2
Here's my version in Python, but I'm a beginner in c++
+ 1
just using without any predef functions
https://code.sololearn.com/cCdZXXcyxVYk/?ref=app
+ 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);
}
}