WFandella
Monday, December 24, 2012
Memanggil Elemen pada Array (Bahasa Pemograman C++)
#include<stdio.h>
#include<conio.h>
int main(void){
int nilai[3];
nilai[0]=12;
nilai[1]=45;
nilai[2]=90;
nilai[3]=41;
for (int i=0;i<=3;i++)
{
if (nilai[i]==45)
{
printf("Nilai 45 ditemukan di elemen ke %d,dengan nilai %d ",i+1,nilai[i]);
}
}
return 0;
}
Selamat Mencoba yaa!! :)
2 comments:
USACOM Hi-Tech Aitindo
April 7, 2013 at 6:15 AM
Lumayan bwat tambahan referensi .... makasih ya
Reply
Delete
Replies
Reply
Winda Fandella
April 14, 2013 at 5:42 AM
oke, thanks buat kunjungannya :)
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Link
Contoh Program Menu Gabungan antara Queue & Sorting C++ (Struktur Data)
Mencari Nilai Terkecil Array (C++)
#include<stdio.h> #include<conio.h> int main(void){ int nilai[3];
Contoh Program Linked List insert Kanan (Struktur Data)
#include<stdio.h> #include<stdlib.h> #include<conio.h> void BUAT_SIMPUL(int X); void AWAL(); void CETAK(); void Ins...
Lumayan bwat tambahan referensi .... makasih ya
ReplyDeleteoke, thanks buat kunjungannya :)
ReplyDelete