/** * @brief Main program * @param None * @retval None */ int main(void) { if (SysTick_Config(SystemCoreClock / 1000)) { /* Capture error */ while (1); } n=1; while (1) { printf ("Numero\n"); //scanf("%d", &n); n=3; f=fattoriale(n); printf("Il fattoriale e %d\n",f); printf ("fine\n"); Delay(2000000); /* Insert 100 ms delay */ //Delay(100); } }
int main(int argc, char** argv){ printf("Fattoriale 5: %d\n", fattoriale(5)); printf("",derNum()); }