Contact Learn C
Copy

Program 357: Display AND table in C

Program 357: Display AND table in C
 
#include<stdio.h>
main()
{
 int a,b,i,temp;
 printf("A  B  Output\n");
 for(i=0;i<4;i++)
 {
  temp=i;
  a=temp%2;
  temp/=2;
  b=temp%2;
  printf("%d %2d %3d\n",a,b,a&b);
 }
}
Explanation:

//Coming Soon

Output:



Display AND table in C
Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide