Program Array Dimensi Satu - Larik / Array C/C++
Praktikum Larik / Array C/C++
Hasil running
#include <stdio.h> int main () { int bulat [4] = {10,20,30,40}; // inisiasi array char huruf [3] = {'a','b','c'}; // inisiasi array float pch [2] = {1.5,1.2}; // inisiasi array //proses tampilan elemen array printf ("%d,%d,%d,%d\n",bulat[0],bulat[1],bulat[2],bulat[3]); printf ("%c %c %c \n",huruf[0],huruf[1],huruf[2]); printf ("%f %f",pch[0],pch[1]); return 0; }
Hasil running
0 Response to "Program Array Dimensi Satu - Larik / Array C/C++"
Post a Comment