Skip to content

Instantly share code, notes, and snippets.

#include "lpc2103.h" // LPC2103 MPU Register
/* pototype section */
void delay_led(unsigned long int); // Delay Time Function
int main(void)
{
unsigned long int LED; // LED Output Status Buffer
// Initial all GPIO-0 = Output
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal