Created
February 4, 2022 17:18
-
-
Save malibayram/b3bc54ef2f6ba63a0931f35fa994d9a1 to your computer and use it in GitHub Desktop.
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
// Burada bir fonksiyon tanımı görüyoruz. | |
void sayiYazdir(int sayi) { | |
// print ifadesini derinlemesine öğrenmek isteyenler => System call | |
print("The number is $sayi"); // Print to console. | |
} | |
int toplamaIslemiYap(int sayi1, int sayi2) { | |
return sayi1 + sayi2; | |
} | |
void merhabaSoyle() { | |
print("Merhaba " + "Dünya"); | |
} | |
// This is where the app starts executing. | |
// uygulamamızın çalışmaya başlama noktası | |
void main() { | |
const number = 42; | |
double sayi; | |
sayi = 23.5; | |
var number2 = 43; // Declare and initialize a variable. | |
sayiYazdir(number); // İşlem çağırma (yapılmasını istemek) şekli | |
sayiYazdir(number); | |
sayiYazdir(number); | |
sayiYazdir(number); | |
sayiYazdir(number); | |
// number = 54; | |
for (int referansDeger = 0; referansDeger < 50; referansDeger++) { | |
if (referansDeger % 2 == 0) { | |
sayiYazdir(referansDeger); | |
} | |
} | |
var toplam = toplamaIslemiYap(4, 6); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment