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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>PDF TASK</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> |
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
/* | |
*http://stackoverflow.com/questions/23317646/why-is-strcpy-unsafe-in-c | |
We can use strncpy instead of strcpy. It's safer. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_SIZE 10 | |
typedef struct teacherData{ |
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 <stdlib.h> | |
struct listNode{ | |
int id; | |
char name[10]; | |
struct listNode *nextPtr; | |
}; | |
typedef struct listNode ListNode; |
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
import java.util.*; | |
public class Main { | |
public static void main(String[] args) { | |
List<String> list1 = new ArrayList<String>(); | |
Scanner scan = new Scanner(System.in); | |
System.out.println("Bir sayı yazınız : "); | |
int number = scan.nextInt(); | |
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
package JavaOgreniyorum; | |
// Main class'ından obje oluşturulup çağırılmalıdır. | |
import java.util.Scanner; | |
public class XOXGame { | |
private final int cSIZE = 3; | |
private final int rSIZE = 3; |
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
package JavaOgreniyorum; | |
import java.util.*; | |
public class Main { | |
public static void main(String[] args) { | |
Random rand = new Random(); | |
final int randomNumber = rand.nextInt(100)+1; | |
int GuessNumber; |
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
/* | |
NOT: Algoritma doğru fakat Big Integer sınıfı kullanılmadığı için değer aşımı var . | |
https://projecteuler.net/problem=55 | |
Eğer 47 sayısını alır ters çevirir ve toplarsak 47+74 = 121 sayısını elde ederiz ki bu sayı palindromik bir sayıdır(sağdan ve soldan yazıldığında aynı). | |
Fakat her sayı bu kadar kolay palindrom üretmez. Örneğin: |
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
package Sample; | |
public class Main { | |
public static void main(String[] args) { | |
Divide exp = new Divide(); | |
int Sonuc = exp.Divider(10, 5); | |
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> | |
/* | |
ebob(m, n) = ebob(n, m mod n) | |
while n != 0 | |
r ‹ m mod n | |
m ‹ n | |
n ‹ r | |
return m |
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 <stdlib.h> | |
#define SIZE 1000000 | |
int main(void) { | |
long long int i,j; | |
int *primes; | |
primes = malloc(sizeof(int)*SIZE); | |
NewerOlder