Beispiel #1
0
int main()
{
	int count;
	
	printf("Please enter 5 numers\n:");
	for(count = 0; count < MAX; count++)
		sum_it();

// printf("%d",sum);

	return 0;
}
Beispiel #2
0
int main()
{
	list l = cons(8, cons(1, cons(2, cons(3, cons(7, cons(2, NULL))))));

	printList(l);
    printf("%d\n", sum_it(l));
    printf("%d\n", sum_rec(l));

	rmEvens_it(&l);

	printList(l);
	return 0;
}