This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
}catch (Exception e){ | |
System.out.println(e); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
Integer[] array = new Integer[]{1, 2, 3}; | |
System.out.println(array[5]); | |
}catch (Exception e){ | |
System.out.println("Hata Oluştu"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Integer[] array = new Integer[]{1,2,3}; | |
System.out.println(array[5]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Integer[] array = new Integer[]{1,2,3}; | |
System.out.println(array[0]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String sehir = "Isparta"; | |
int sayi = sehir; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include | |
int main(){ | |
int n, CiftToplam=0, CiftCarpim=1, i=2; | |
printf("N Sayisini Giriniz: "); | |
scanf("%d", &n); | |
for(i=2; i<=n; i++){ | |
if(i%2==0){ | |
CiftToplam=(i*i)+CiftToplam; | |
CiftCarpim=(i*i*i)+CiftCarpim; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include | |
int main(){ | |
int n, TekToplam=0, TekCarpim=1, i=1; | |
printf("N Sayisini Giriniz: "); | |
scanf("%d", &n); | |
for(i=1; i<=n; i++){ | |
if(!(i%2==0)){ | |
TekToplam=TekToplam+i; | |
TekCarpim=TekCarpim*i; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include | |
int main(){ | |
int x,y, Toplam=0; | |
printf("Lutfen Bir Sayi Giriniz:"); | |
scanf("%d", &y); | |
for(x=1; x<=y; x++){ | |
toplam+=x; | |
} | |
printf("Toplam %d", Toplam); | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include | |
int main(){ | |
int TekTop=0, CiftTop=0, i=1; | |
double CiftCarp=1, TekCarp=1; | |
for(i=1; i<=99; i++){ | |
if(i%2==0){ | |
CiftTop=i+CiftTop; | |
CiftCarp=i*CiftCarp; | |
} | |
else{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
int a,b,c; | |
printf("A Sayisini Gir"); | |
scanf("%d", &a); | |
printf("B Sayisini Gir"); | |
scanf("%d", &b); | |
printf("C Sayisini Gir"); | |
scanf("%d", &c); | |
if(a<b && a<c){ |