#include<stdio.h>
int main(void)
{
int a[5],i=0,s=0;
printf("Enter 5 digits (choose digits between 0-9)::\n");
for(i=0;i<5;i++)
scanf("%d",&a[i]);
printf("\n\n");
for(i=0;i<4;i++)
printf("%5d|%d=%d",a[i+1],a[i],a[i+1]|a[i]);
printf("\n\n");
for(i=0;i<4;i++)
printf("%5d||%d=%d",a[i+1],a[i],a[i+1]||a[i]);
int main(void)
{
int a[5],i=0,s=0;
printf("Enter 5 digits (choose digits between 0-9)::\n");
for(i=0;i<5;i++)
scanf("%d",&a[i]);
printf("\n\n");
for(i=0;i<4;i++)
printf("%5d|%d=%d",a[i+1],a[i],a[i+1]|a[i]);
printf("\n\n");
for(i=0;i<4;i++)
printf("%5d||%d=%d",a[i+1],a[i],a[i+1]||a[i]);