#include int main() { //While kullanımı int sayi = 0; while (sayi < 10) { printf("%d\n", sayi); sayi++; } //Do While kullanımı int sayi2 = 0; do { printf("%d\n", sayi2); sayi2++; } while (sayi2 < 10); //For kullanımı for (int i = 0; i < 10; i++) { printf("%d\n", i); } //ForEach kullanımı int dizi[5] = {1, 2, 3, 4, 5}; for (int i = 0; i < 5; i++) { printf("%d\n", dizi[i]); } }