Belajar C

Run Settings
LanguageC
Language Version
Run Command
/* File : tabel1.c */ /* Penulis : Izza, email izza.fahlevi@gmail.com */ /* Deskripsi : */ /* Mendefinisikan array dan mengisi nilainya */ #include <stdio.h> int main () { /* KAMUS */ int Tab [5] = {1, 2, 3, 4, 5}; /*Tab [0] = 1; Tab [1] = 2; ... Tab [4] = 5 */ float TabX [3] = {1.5, 3.5E2, 9.99}; char Tabchar [4] = {'1', '2', '@', 'Z'}; int i; /* untuk iterasi indeks tabel */ /* menuliskan isi Tab berderet ke kanan */ for (i = 0; i < 5; i++) { printf ("Tab[%d] = %d ;", i, Tab [i]); } printf ("\n"); /* Latihan : tuliskan nilai TabX dan TabChar */ return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines