This file contains hidden or 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
/* Fibonacci sayilarini ekrana yazar */ | |
#include<stdio.h>int main( void ) | |
{ | |
int a = 0; /* a[n] */ | |
int b = 1; /* a[n+1] */ | |
int c; /* a[n+2] */ | |
int n; | |
int i; | |
This file contains hidden or 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
/* '*'ler yardimiyla eskenar dortgen cizer */ | |
#include<stdio.h> | |
int main( void ) | |
{ | |
int i, j; | |
for(i = 1; i <= 5; i++) { | |
for(j = 1; j <= 9; j++) | |
if((j <= (9 - (2*i - 1))/2) || (j > (i + 4))) |
This file contains hidden or 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
/* Hipotenusu 500'e kadar olan pisagor uclulerini ekrana yazar. */ | |
#include<stdio.h> | |
int main( void ) | |
{ | |
int a; /* birinci dik kenar */ | |
int b; /* ikinci dik kenar */ | |
int hipotenus; | |
for(a = 1; a < 500; a++) |
This file contains hidden or 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
/* Ev sekli cizen program */ | |
#include<stdio.h> | |
// Evin catisini cizen fonksiyon. | |
void catiyi_ciz( void ) | |
{ | |
printf( " /\\ \n" ); | |
printf( " / \\ \n" ); | |
printf( " / \\ \n" ); | |
printf( " / \\\n" ); | |
printf( "----------\n" ); |
This file contains hidden or 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> | |
// Verilen sayinin asal olup olmadigina | |
// bakar. Sayi asalsa, geriye 1 aksi hâlde | |
// 0 degeri doner. | |
int sayi_asal_mi( int sayi ) | |
{ | |
int i; | |
for( i = 2; i <= sayi/2; i++ ) { | |
// Sayi asal degilse, i'ye tam olarak |
This file contains hidden or 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
// | |
// main.c | |
// a | |
// | |
// Created by cagatay on 28.11.2015. | |
// Copyright © 2015 cagatay. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <string.h> // String işlemleri için (Yazı) |
This file contains hidden or 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> | |
#include <time.h> // Random sayı üreteceğimiz fonksiyonda kullanılacak time eventi! | |
#include <stdlib.h> // Random sayılar için | |
int main(void) | |
{ | |
/** | |
Bilgisayar tarafından | |
random 0-100 arasında 0 - 100 dahil | |
üretilen bir tam sayıyı deneme |
This file contains hidden or 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> | |
/* | |
Ekrana uzun ve kısa kenarları * olan bir paralelkenar | |
basan program yazınız ( for kullanarak ) | |
*/ | |
int main(void) | |
{ | |
int en,boy; |
This file contains hidden or 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> | |
/* | |
1'den 100'e kadar olan tek sayıları toplayıp ekrana yazacağız. | |
*/ | |
int main(void) | |
{ | |
int toplam = 0; | |
for (int i = 0; i <= 100; i = i + 1 ) |
This file contains hidden or 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> | |
/* | |
1'den 100'e kadar olan tek sayıları toplayıp ekrana yazacağız. | |
*/ | |
int main(void) | |
{ | |
int toplam = 0,i=1; | |
/* İ sayacımız 100'e gelene kadar dönecektir */ |