الأجوبة
import 'dart:io';
void main() {
stdout.write("Please give a word: ");
String input = stdin.readLineSync()!.toLowerCase();
String revInput = input.split('').reversed.join('');
if(input == revInput){
print("The word is palindrome");
}
else {
print("The word is not a palindrome");
}
}
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة