Minggu, 17 Januari 2010

Procedure Irisan di C++

//Procedure irisan
void irisan(int A[], int B[],int jum){
int i=1;
cout<<"Array yang beririsan :";
while (i<=jum)
{
int j=1;
while ((A[i] != B[j]) && (j <= jum))
{
j++;
}
if (A[i]==B[j])
{
cout<<" "< }
i++;
}
}

0 comments:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Enter your email address to subscribe:

Delivered by FeedBurner

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo