EmreCapan adlı üyeden alıntı: mesajı görüntüle
Bu 1.
package javaapplication1;

/**
*
* @author CAPAN
*/
public class JavaApplication1 {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {

int sayac=0;
for (int i = 1212; i < 4949; i+=101) {
if (i%13==10) {
sayac++;
}
}
System.out.println(sayac);
}

}
impROS01 adlı üyeden alıntı: mesajı görüntüle
//impROS
public class Main {
public static void main(String[] args) {
int sayac=0;
for (int i = 12; i < 50; i++) {
int tmp =Integer.parseInt(i+""+i);
if(tmp%13==0){
sayac++;
}
}
System.out.println("Cevap : "+sayac);
}

}

}
1.Soru bu şekilde çözülebilir hocam.. Çalıştırınca çıktısı Cevap : 3 oluyor..
pr1d3 adlı üyeden alıntı: mesajı görüntüle
2. soru
package javaTest;
import java.util.Scanner;
public class odev {

public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String number = in.nextLine();
int total = 0;
for(int i = 0; i < number.length();i++) {
total += faktoriyel(Integer.valueOf(number.substring(i, i+1)));
}
if(total==Integer.valueOf(number))
System.out.println("Eşit");
else
System.out.println("Eşit Değil");
}
private static int faktoriyel(int n) {
if (n <= 1) {
return 1;
} else {
return n * faktoriyel(n - 1);
}
}
}
3. soru

package javaTest;
public class odev {
public static void main(String[] args) {
String hexValue = "A7BF";
System.out.println(Integer.parseInt(hexValue,16));
}
}
4. soru
package javaTest;
import java.util.Scanner;
public class odev {
    
public static void main(String[] args) {
     Scanner in = new Scanner(System.in);
int number = in.nextInt();
int total = 0;
for(int i = 1; i <=number; i++) {
     if(number % i == 0)
         total += i;
}
System.out.println(total);
}
}
impROS01 adlı üyeden alıntı: mesajı görüntüle
import java.util.Scanner;

//impROS
public class Main {

public static void main(String[] args) {
Scanner giris = new Scanner(System.in);
int sayi = 0;
while (sayi != -1) {
System.out.println("Bir sayi giriniz");
sayi = giris.nextInt();

int toplam = 0;
String strSayi = "" + sayi;
for (int i = 0; i < strSayi.length(); i++) {
int tmpRakam = Integer.parseInt("" + strSayi.charAt(i));
toplam += faktoriyelHesapla(tmpRakam);
}
if (sayi == toplam) {
System.out.println("Koşul Sağlanıyor : " + toplam+" = "+sayi);
} else {
System.out.println("Koşul Saglanmıyor: " + toplam+" != "+sayi);
}
}
}

public static int faktoriyelHesapla(int sayi) {
int sonuc = 1;
for (int i = 2; i <= sayi; i++) {
sonuc *= i;
}
return sonuc;
}
}
2.Soru da bu şekilde çözülebilir..
Gerçekten çok çok teşekkür ederim ilginizden dolayı. Güzel geceler dilerim