//1-1/3+1/5-1/7+1/9-#include<stdio.h>int main(void){ int sign=1,n; float deno=3.0,sum=1.0,term; printf("please input n:\n"); scanf("%d",&n); while(deno<=n) { sign=-sign; term=sign/deno; sum=sum+term; deno=deno+2; } printf("%f\n",sum); system("pause"); return 0;}