Posts by Lucas Souza • 1 point
2 posts
-
-3
votes4
answers20854
viewsA: How to order vector in descending order?
//Ordem Decrescente import java.util.Scanner; public class OrdemDecrescente { public static void main(String[] args) { int cont = 1; int[] vet = new…
-
-4
votes9
answers17879
viewsA: How to identify if a string is a palindrome?
To decide whether the word is or is not palyndrome f=input('Digite uma frase: ') if f==f[::-1]: print('A frase é palíndromo --> %s'%(f)) else: print('A frase não é palíndromo --> %s'%(f))…