/* ==================================== *\
 *	File      : OrTest.c                 *
 *	Påbegyndt : 15.03.02 Henning Karlby  *
 *	Færdig    :                          *
 *	Ændret    :                          *
 * Demonstration af bitoperatoren OR    *
\* ==================================== */

/* ---- INCLUDES ------- */
#include <stdio.h>
#include <conio.h>

void main(void)
{
	unsigned int x1=0xFF, x2=0xFF;  // Sætter startværdi != 0

	while( x1 != 0 || x2 != 0 )     // Afslut hvis 0,0
	{
		printf("\nIndtast to hexadecimaltal (ff eller mindre): ");
		scanf("%x %x", &x1, &x2);
		printf("%02x | %02x = %02x\n", x1, x2, x1 | x2 );
	}
}