Skip to content

Instantly share code, notes, and snippets.

View aelipek's full-sized avatar
🏠
Working from home

Abdullah ELİPEK aelipek

🏠
Working from home
View GitHub Profile
@aelipek
aelipek / validation_vkn.php
Created December 5, 2013 09:53
PHP Vergi Kimlik No Kontrol
function validation_vkn($vkn)
{
$balance = true;
for ($i = 0; $i < strlen($vkn); $i++) {
if (is_numeric($vkn[$i])) {
} else
$balance = false;
}
if (strlen($vkn) == 10 && $balance) {
$vkn_1 = $vkn[0];
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
pthread_mutex_tmutex=PTHREAD_MUTEX_INITILIZER;
intshared_data=1;
void *consumer(void* arg) {
#include<stdio.h>
int main( void )
{
// 5 adet ogrenci icin 8 adet sinavi
// temsil etmesi icin bir ogrenci tablosu
// olusturuyoruz. Bunun icin 5x8 bir matris
// yaratilmasi gerekiyor.
int ogrenci_tablosu[ 5 ][ 8 ];
int i, j;
for( i = 0; i < 5; i++ ) {