#include
#include
#include
void main()
{
int x, p[4], q[4] , a[4], b[4], c[4], d[4] ;
p[0]=1;
p[1]=1;
p[2]=0;
p[3]=0;
q[0]=1;
q[1]=0;
q[2]=1;
q[3]=0;
cout<<"TABEL KEBENARAN\n";
cout<<"===============\n\n";
cout<<"-----------------------------------------------------------\n";
cout<<"P"<
for (x=0; x<=3; x++)
{
a[x]=p[x]||q[x];
b[x]=p[x]&&q[x];
c[x]=!p[x];
d[x]=p[x]^q[x];
cout<
cout<
cout<
getche();
}
0 comments:
Speak up your mind
Tell us what you're thinking... !