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
package business; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
public class ProjeDAO { | |
protected String connectionURL = "jdbc:mysql://localhost:3306/uyeler"; | |
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
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
public class Problem42 { | |
int sum = 0; | |
int triangle_sayi; |
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> | |
#include <stdlib.h> //rand() fonksiyonu icin baslik dosyasidir. | |
#include <time.h> //srand() ve clock() fonksiyonlari icin gerekli olan baslik dosyasidir. | |
int myrandom(int basamak){ | |
int defa = (basamak / 5); | |
int sayim, say, no = 1; | |
while(defa > 0){ //istenilen basamak sayisina ulasabilmek icin kac defa 5 basamakli sayi üretilecekse o kadar döngü devam eder. | |
say = rand() % 89999 + 10000; //random ile 5 basamakli sayilar belirlenir. | |
sayim = say; //ilk 5 basamakli sayi atamasi yapilir. | |
if(no != 1) // 2. ve daha sonraki sayilar olmak üzere |
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> | |
#define ROT 13 | |
int | |
main(void) | |
{ | |
int c, c_yeni; | |
while((c = getchar()) != EOF){ | |
if(c >= 'A' && c <= 'Z'){ |
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 say1, say2, i; | |
printf("Sayıları giriniz: "); | |
scanf("%d%d", &say1, &say2); | |
for(i = (say1 + say2) / 2; i > 0; i --) |
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> | |
#include <stdlib.h> | |
int | |
main(int argc, char *argv[]) | |
{ | |
int n1, n2, n3; | |
n1 = atoi(argv[1]); | |
n2 = atoi(argv[3]); | |
n3 = n1 + n2; |
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> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) | |
{ | |
int alt_sinir, ust_sinir, toplam; | |
alt_sinir = atoi(argv[1]); | |
ust_sinir = atoi(argv[2]); | |
printf("%d ile %d arasındaki sayıların toplamı :", alt_sinir, ust_sinir); | |
toplam = 0; |
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() | |
{ | |
int a, b, c; | |
int n; | |
printf("n değerini giriniz: "); | |
scanf("%d", &n); | |
a = 1; | |
b = 1; |
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() | |
{ | |
int say1, say2, sonuc; | |
char tip; | |
printf("İşlem tipini giriniz (+,-*,/): "); tip = getchar(); | |
printf("1. sayıyı giriniz: "); scanf("%d", &say1); | |
printf("2. sayıyı giriniz: "); scanf("%d", &say2); | |
switch(tip){ |
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() | |
{ | |
int say1, say2, sonuc; | |
char tip; | |
printf("1. sayıyı giriniz: "); scanf("%d", &say1); | |
printf("2. sayıyı giriniz: "); scanf("%d", &say2); | |
printf("İşlem tipini giriniz (+,-,*,?): "); tip = getchar(); |
NewerOlder