Get paid to share your links!

Tabel Kebenaran

Wednesday, March 7, 2012

#include
#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"< cout<<"P AND Q"< cout<<"-----------------------------------------------------------\n";
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< cout< cout< cout<
cout< }
cout<
getche();
}
Share this article :

0 comments:

Speak up your mind

Tell us what you're thinking... !

Followers

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Blog - All Rights Reserved
Template Created by Creating Website Inspired by Sportapolis Shape5.com
Proudly powered by Blogger