Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <locale.h>
- #include <math.h>
- int main() {
- setlocale(0, "");
- double s1,S=1,a;
- fflush(stdout);
- printf("Введите значение а:\n");
- scanf("%lf",&a);
- if(a>=0){
- for(int i=2;i<=8;i+=2){
- s1=pow(i,2);
- S*=s1;
- }S-=a;
- printf("%.7lf",S);}
- else{
- for(int i=3;i<=9;i+=3){
- s1 =pow(i,2)-a;
- S *= s1;
- }printf("%lf",S);}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement