Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float SomaIt(int N)
- {
- int i, j;
- float fact = 1, par = 0, pot=1, soma = 0;
- for (i=1; i <= N; i++)
- {
- pot = 1;
- fact *= i;
- par = fact + i;
- for(j=0; j<i; j++)
- pot *= par;
- soma += pot;
- }
- return soma;
- }
Advertisement
Add Comment
Please, Sign In to add comment