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
/* | |
* File: main.c | |
* Author: alaattin | |
* | |
* Created on 18 Mart 2013 Pazartesi, 22:23 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> |
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
/* | |
* File: main.c | |
* Author: alaattin | |
* | |
* Created on 17 Mart 2013 Pazar, 17:01 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
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> | |
void main() | |
{ | |
int neg = 0, poz = 0;// | |
int s=0; | |
int d; | |
loop: |
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> | |
int main() | |
{ | |
int bas_1; | |
int bas_2; | |
int sayi; | |
printf("sayiyi giriniz:"); | |
scanf("%d",&sayi); |
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
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]; |
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
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; |
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 <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') |
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
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ı |
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
#!/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: |
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
#!/usr/bin/env python | |
#-*-coding:utf-8-*- | |
class Kesir: | |
def __init__(self,x,y): | |
self.pay = x | |
self.payda = y | |
def enBuyukbul(liste): | |
bolumler = [] |