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
/* "a-b-c" olarak alınan girdiyi "abc" şeklinde döndüren program*/ | |
#include<stdio.h> | |
int main(void) | |
{ | |
char yazi[10],son[10],karakter; | |
int i,a; | |
printf("birseyler yaz:"); | |
scanf("%s",yazi); | |
for(i=0,a=0;yazi[i]!='\0';i++,a++){ | |
if(yazi[i]!='-') |
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
Public Class Form1 | |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click | |
Dim kelime, terskelime As String | |
kelime = TextBox1.Text | |
terskelime = "" | |
For i = 1 To kelime.Length | |
terskelime = terskelime & kelime.Substring(kelime.Length - i, 1) | |
Next | |
Label1.Text = terskelime |
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
Public Class Form1 | |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click | |
Dim sayi, z As Integer | |
sayi = 1 | |
If TextBox1.Text = 0 Then 'eğer girilen sayı 0 ise | |
TextBox2.Text = 1 'TextBox2'de 1 görüntüle | |
Else | |
For z = 1 To TextBox1.Text | |
sayi = sayi * z |
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
Public Class Form1 | |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click | |
Dim a, b, sayi, deger As Integer | |
If Val(TextBox2.Text) <> 1 Then | |
sayi = Val(TextBox2.Text) | |
a = 1 | |
b = 2 | |
For z = 1 To sayi - 2 | |
deger = b |
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
Public Class Form1 | |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click | |
Dim kalin(3), ince(3), karakter As String | |
Dim bak, bak1 As Integer | |
bak = 0 | |
bak1 = 0 | |
kalin(0) = "a" | |
kalin(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
Public Class Form1 | |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click | |
Dim genisduz(1), daryuvarlak(1), duzdar(1), genisyuvarlak(1) As String | |
Dim bak1, bak2, bak3, bak4 As Integer | |
bak1 = 0 | |
bak2 = 0 | |
bak3 = 0 | |
bak4 = 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
Public Class Form1 | |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click | |
Dim deger | |
Dim sayi, ara, z, y, art As Integer | |
For i = 1 To 10 | |
Randomize() | |
deger = Int((100 * Rnd()) + 1) | |
ListBox1.Items.Add(deger) | |
Next |
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 javax.swing.*; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
public class Array{ | |
public static void main(String args[]){ | |
ArrayList<Integer> liste = new ArrayList<Integer>(); | |
for (int i=0;i<5;i++) | |
liste.add(Integer.parseInt(JOptionPane.showInputDialog(null, "no gir:"))); | |
listeyiGoster(liste); |
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
class Kisi { | |
String ad; | |
int tcNo; | |
String dogumTarihi; | |
public Kisi(int gelentcNo,String gelenAd, String dogumTarihi ){ | |
this.tcNoSetEt(gelentcNo); | |
this.adSetEt(gelenAd); | |
this.dogumTarihiSetEt(dogumTarihi); | |
} |
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 javax.swing.*; | |
import java.util.*; | |
class KayitListesi { | |
ArrayList<String> liste=new ArrayList<String>(); | |
private void menuEkrani(){ | |
String str="Lütfen seçiminizi yapiniz:\n*********\n "; | |
str+="\n[1]Listeye yeni isim ekle"; | |
str+="\n[2]Listeden isim sil"; | |
str+="\n[3]Listeyi Göster"; |
OlderNewer