Skip to content

Instantly share code, notes, and snippets.

View Rahajustone's full-sized avatar
:octocat:
Software Engineer at Microsoft

Rahmatullo Rahajustone

:octocat:
Software Engineer at Microsoft
View GitHub Profile
#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);
}
}
@Rahajustone
Rahajustone / karakter-sayma
Created February 25, 2014 18:25
karakter-sayma
#include<stdio.h>
int main(void)
{
int ks; /* karakter saymak */
ks=0;
while(getchar()!=EOF)
++ks;
printf("%d",ks);
}
#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;
}
#include <stdio.h>
int kucukh_harf(int c)
{
if(c>='A'&&c<='Z')
return c+'a'-'A';
else
return c;
}
#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));
#!/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
#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
#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);
#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";
@Rahajustone
Rahajustone / c_?.c
Created March 18, 2014 22:54
c dilinde ?..
#include <stdio.h>
int main(void)
{
int not;
printf("lutfen notunuzu giriniz:");
scanf("%d",&not);
printf("%s\n",not>=60?"geçtiniz":"gecmediniz");
return 0;
}