Menampilkan Sama atau Tidaknya dua buah data array

Posted: October 12, 2010 in Algoritma & Struktur Data
Tags:

#include
#include

main()
{
char nilai1[30];
char nilai2[30];

cout<>nilai1;
cout<>nilai2;

if((strcmp(nilai1,nilai2) == 0))
cout<<"Nilai A : "<<nilai1<<" = Nilai B : "<<nilai2<<endl;
else
cout<<"Nilai A : "<<nilai1<<" != Nilai B : "<<nilai2<<endl;

cout<<endl;
cout<<endl;
cout<<"\t Created By "<<endl;
cout<> || <> || <<- "<<endl;
cout<<"\t Algoritma & Struktur Data ";
getch();
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s