6 lines
140 B
C
6 lines
140 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
uint8_t nand_gate(uint8_t a, uint8_t b){
|
|
return ~(((a >> 0) & 0x01) & ((b >> 0) & 0x01)) & 0x01;
|
|
} |