DIINGINKAN OUTPUT SBB:
CODING:
//SILAHKAN GANTI TANDA "(" DAN ")" PADA INCLUDE MENJADI "<" DAN ">"
#include(stdio.h)
#include(conio.h)
#define Nmaks 100
typedef int larikint [Nmaks+1];
int k=0;
char jawab;
larikint A;
int N;
void Bacalarik2(larikint &A, int &N){
k=0;
do{
k++;
printf("Masukan nilai A[%d]: ",k);
scanf("%d",&A[k]);
printf("Mau Lagi (y/t) : ");
scanf("%s",&jawab);
}while ("%s",jawab !='t');
N=k;
}
int main(){
clrscr();
printf("BACA ELEMEN LARIK A \n");
printf("=================== \n");
Bacalarik2(A,N);
return 0;
}
OK THANKS SEMOGA BERMANFAAT YAH...
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=72941&lngWId=1
ReplyDelete