Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int calculochato(int n){
- int i;
- float soma=0, s=0;
- for(i=1;i<=n;i++){
- soma=i;
- s+=((soma*soma+1)/(soma+3));
- }
- return s;
- }
- int main(){
- int n;
- printf("");
- scanf("%d", &n);
- printf("S: %d",calculochato(n));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement