wizzard
06-03-2009, 06:05 PM
#include <stdio.h>
short int somatorio(short int x){
if(x == 1)
return x;
else
return x + somatorio(x – 1);
}
main(){
int y;
t = somatorio(50);
}
this is the c code that i dont know what it does, please help me. and thanks for all you time.
short int somatorio(short int x){
if(x == 1)
return x;
else
return x + somatorio(x – 1);
}
main(){
int y;
t = somatorio(50);
}
this is the c code that i dont know what it does, please help me. and thanks for all you time.