Created
June 10, 2019 19:24
-
-
Save denizfurkan/f618e3de359caabe052f5b3fbf7951e4 to your computer and use it in GitHub Desktop.
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; | |
} | |
} | |
printf("Cift Sayilar Kareleri %d\n", CiftToplam); | |
printf("Cift Sayilar Kupleri %d", CiftCarpim); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment