Por si les interesa saber como "Invertir Cadena" | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Por si les interesa saber como "Invertir Cadena"

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String text = scanner.nextLine(); char[] arr = text.toCharArray(); //tu código va aquí for (int a = arr.length -1; a >= 0; a--){ System.out.print(arr[a]); } } } Así lo hice yo que difícil xd

10th Aug 2022, 8:05 PM
SKY RED
SKY RED - avatar
1 Antwort