Escolar Documentos
Profissional Documentos
Cultura Documentos
Aluno:
int m, z, w;
void T(int n) {
w = w+n;
}
void S(int m) {
z = z + 3*m;
}
void R(int n) {
if (n>0) {
R(n-1);
m = m+2;
S(n);
T(m);
} else T(m);
}
int main() {
m = 2;
z = 0;
w = 0;
R(m);
return 1;
}