Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IF
- #include <math.h>
- #include <stdio.h>
- main()
- {
- int x; float a=5,b=1.2,y=6;
- double z=0;
- printf("Vvedite X:");
- scanf("%d",&x);
- if (x==3)
- z=y*y+0.3*a;
- else if (x==5 || x==2)
- z=a+exp(y*b);
- else if (x==6 || x==7 || x==8)
- z=y*y+y-b;
- printf("%6.2lf",z);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement