Untitled
unknown
c_cpp
22 days ago
304 B
2
Indexable
Never
#include <stdio.h> int func(long int numb); main() { long number; int res; number = 3464569 ; res func (number); printf("the number id %ld, the function result is: %d", number, res); return 0; } int func(long int numb) { if (numb == 0) else return 0; return ( (numb%10) + func(numb/10)) ;
Leave a Comment