/home/toolbox/public_html/solutions/104/10469/a.c
1 #include <stdio.h>
2 #include <string.h>
3 #include <sys/types.h>
4 #include <sys/stat.h>
5 #include <fcntl.h>
6 #include <stdint.h>
7 #include <math.h>
8 #include <stdlib.h>
9
10 #define TRUE (1 == 1)
11 #define FALSE (1 != 1)
12
13 #define DEBUG if (FALSE)
14
15 #define MAX_LINE 257
16
17 /*
18 * Author:
19 * Date:
20 * Purpose:
21 * Problem:
22 */
23
24 /*
25 * This template reads lines of data at a time until end of file.
26 */
27
28 unsigned int a;
29 unsigned int b;
30 unsigned int c;
31
32 void init()
33 {
34 /* FUNCTION init */
35 } /* FUNCTION init */
36
37 void dump()
38 {
39 /* FUNCTION dump */
40 } /* FUNCTION dump */
41
42 int getInput()
43 {
44 /* FUNCTION getInput */
45 int dataReadFlag;
46
47 dataReadFlag = (2 == scanf(" %u %u ", &a, &b));
48 return (dataReadFlag);
49 } /* FUNCTION getInput */
50
51 void process()
52 {
53 /* FUNCTION process */
54 c = a ^ b;
55 printf("%u\n", c);
56 } /* FUNCTION process */
57
58 int main()
59 {
60 /* main */
61 int moreToDo;
62
63 init();
64 moreToDo = getInput();
65 while (moreToDo)
66 {
67 /* while */
68 process();
69 moreToDo = getInput();
70 } /* while */
71
72 return EXIT_SUCCESS;
73 } /* main */
74