a*PI; return ar;Р}Рfloat surface(float b,float h)Р{Рfloat area(float a); float perimeter (float a); float s;Рs=area(b)*2+h*perimeter(b); return s;Р}Рfloat volume(float b,float h)Р{Рfloat area(float a); float v; v=h*area(b); return v;Р3-Р#include<stdio.h>Р#include<math.h> void main()Р{Рfloat PI,sum=0; int n;Рfor(n=l;;n++)Р{Рif(1.0/pow(n,2)>=10e-5) sum+=1.0/pow(n,2); else break;Р}РPI=sqrt(6*sum);Рprintf(n%f\n",PI);Р}Р4.Р#include<stdio.h>Р#include<math.h> void main()Рlong fact(int i); scanf(n%dn,&n); printf(n %ld\nH,fact(n));Р}Рlong fact(int i)Р{Рlong sum=0;Рif(i>=l) sum=sum+pow(i,3)+fact(i-l); return sum;Р}Р#include<stdio.h>Рlong fun(int n)Р{Рinti; long m; m=l;Рfor(I=l; I<=n; I++) m=m*I; return m;Р}Рmain()Рlong m;Рint k,n;Рscanf(”%d",&n);Рm=0;Рfor(k=0;k<=n;k++) m=m+fun(k); printf(H%ld\nH,m);