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(void) { | |
int c,f; | |
for(f=0;f<=300;f=f+20) { | |
c=5*(f-32)/9; | |
printf("%d\t%d\n",f,c); | |
} | |
} |
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(void) | |
{ | |
int ks; /* karakter saymak */ | |
ks=0; | |
while(getchar()!=EOF) | |
++ks; | |
printf("%d",ks); | |
} |
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 atoi(const char* str) | |
{ | |
int i,n; | |
n=0; | |
for(i=0;str[i]>='0'&&str[i]>='0';++i) | |
n=10*n+(str[i]-'0'); | |
return n; | |
} |
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 kucukh_harf(int c) | |
{ | |
if(c>='A'&&c<='Z') | |
return c+'a'-'A'; | |
else | |
return c; | |
} | |
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() | |
{ | |
printf( "char : %d bayt\n", sizeof(char)); | |
printf( "short : %d bayt\n", sizeof(short)); | |
printf( "int : %d bayt\n", sizeof(int)); | |
printf( "long : %d bayt\n", sizeof(long)); | |
printf( "unsigned char : %d bayt\n", sizeof(unsigned char)); | |
printf( "unsigned short : %d bayt\n", sizeof(unsigned short)); |
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
#!/usr/bin/ruby | |
# encoding: utf-8 | |
class Merhaba | |
attr_reader:x ,:y | |
def initialize(x,y) | |
@x,@y=x,y | |
end | |
def to_s | |
"(#{@x},#{@y})" | |
end |
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
#dosya çağirdik | |
dosyaismi = open("./algoritmalar_2014_ogrenci_listesi.csv","r") | |
isimler=dosyaismi.read().split("\n") | |
def BKDRHash(key):#1.09 | |
seed = 131 # 31 131 1313 13131 131313 etc.. | |
hash = 0 | |
for i in range(len(key)): | |
hash = (hash * seed) + ord(key[i]) | |
return (hash % 150) | |
slotlist=[] #boş liste oluşturduk |
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(void) { | |
float a,b,c; | |
float i,l,k; | |
printf("Enter the amount of the loan:"); | |
scanf("%f",&a); | |
printf("Enter interested rate:"); | |
scanf("%f",&b); |
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(void) | |
{ | |
int r1c1, r1c2, r1c3, r1c4; | |
int r2c1, r2c2, r2c3, r2c4; | |
int r3c1, r3c2, r3c3, r3c4; | |
int r4c1, r4c2, r4c3, r4c4; | |
char *row_format = "%2d\t%2d\t%2d\t%2d\n"; |
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(void) | |
{ | |
int not; | |
printf("lutfen notunuzu giriniz:"); | |
scanf("%d",¬); | |
printf("%s\n",not>=60?"geçtiniz":"gecmediniz"); | |
return 0; | |
} |
OlderNewer