Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- void main(){
- float i;
- float s;
- printf("\n Please enter the value of argument: s=");
- scanf("%f", &s);
- double a = 0.854;
- double b = 3.625;
- if( (s < 1.5) && (s >= b - a) )
- {
- i = ( (sqrt(b) + pow( cos( pow(a, 2) * s), 2) ) / (log10( abs(s - 5) ) ) );
- scanf("%f", &i);
- }
- else if(s > b){
- i=(a * b) + tan( (s / 3) + 3.14 / 12);
- printf("i=%f", i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement