Open aykuta3474 opened 2 years ago
import java.util.Scanner;
public class palidromsayıbulma { static boolean isPalindrom(int number){
int temp= number, reverseNumber=0, lastnumber; while (temp != 0){ System.out.println("====="); System.out.println("sayı =>"+temp); lastnumber = temp % 10; System.out.println("Son Basamak =>"+ lastnumber); reverseNumber = (reverseNumber * 10) + lastnumber; System.out.println("Yeni Sayı=>"+reverseNumber); temp /= 10; System.out.println("yeni temp=>"+temp); } return true; } public static void main(String[] args) { isPalindrom(2476); /* int number =2476 ; int a= number / 10; System.out.println(a); */ }
}
import java.util.Scanner;
public class palidromsayıbulma { static boolean isPalindrom(int number){
}