Skip to content

Instantly share code, notes, and snippets.

View pasali's full-sized avatar
🎯
Focusing

Mehmet Başal pasali

🎯
Focusing
View GitHub Profile
@pasali
pasali / alistirma2.c
Last active December 15, 2015 02:59 — forked from austa/alistirma2.c
/*
* File: main.c
* Author: alaattin
*
* Created on 18 Mart 2013 Pazartesi, 22:23
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@pasali
pasali / str_cat.c
Last active December 15, 2015 01:48 — forked from austa/str_cat.c
/*
* File: main.c
* Author: alaattin
*
* Created on 17 Mart 2013 Pazar, 17:01
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include<stdio.h>
void main()
{
int neg = 0, poz = 0;//
int s=0;
int d;
loop:
#include<stdio.h>
int main()
{
int bas_1;
int bas_2;
int sayi;
printf("sayiyi giriniz:");
scanf("%d",&sayi);
@pasali
pasali / cpu.v
Created May 28, 2012 14:50 — forked from erdemalkim/cpu.v
Basit bir işlemci
module cpu (KEY, SW, LEDR);
input [1:0] KEY;
input [17:0] SW;
output [17:0] LEDR;
wire Resetn, Manual_Clock, Run, Done;
wire [15:0] DIN, Bus;
assign Resetn = KEY[0];
assign Manual_Clock = KEY[1];
module date_counter (KEY, HEX0, HEX1, HEX2, HEX3, HEX4, HEX5, HEX6, HEX7);
input [3:0] KEY;
output [0:6] HEX0, HEX1, HEX2, HEX3, HEX4, HEX5, HEX6, HEX7;
reg [3:0] G1=4'd1;
reg [3:0] G10=4'd0;
reg [3:0] A1=4'd1;
#include <stdio.h>
#include <string.h>
int yuvarla(float f , int sira)
{
int bi_onceki,secici;char a;
char d[100] ;
sprintf(d, "%f", f);// float'ı stringe çevirdik
int i= 0 ;
while( d[i] != '\0')
cuhurbaskanı hepsinde cumhur Baskanoğlu
vali $1 den $4(dahil) vali_1 gersi vali_2
kaymakam $1 de yok(--- yani) $2ve$3 te k_1_1 $4ve$5 te yok $6 ve $7 de k_2_2 geri kalanda yok
b şıkkı için kaymakam değerleri if bloklar içinde olduğundan ve blockların dışını kapsamadıklarından hata verir.
3. soruda
3.a = 1100 çıktısnı
3.b 1001 çıktınısını
3.c 1001 çıktısını
#!/usr/bin/env python
#-*-coding:utf-8-*-
from queue import Queue
noktalar = Queue()
def komsuBul(a,b):
durum = 0
liste = []
while durum < 4:
if durum== 0:
#!/usr/bin/env python
#-*-coding:utf-8-*-
class Kesir:
def __init__(self,x,y):
self.pay = x
self.payda = y
def enBuyukbul(liste):
bolumler = []