Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. void main(){
  5.         float i;
  6.         float s;
  7.         printf("\n Please enter the value of argument: s=");
  8.         scanf("%f", &s);
  9.         double a = 0.854;
  10.         double b = 3.625;
  11.         if( (s < 1.5) && (s >= b - a) )
  12.         {
  13.                 i = ( (sqrt(b) + pow( cos( pow(a, 2) * s), 2) ) / (log10( abs(s - 5) ) ) );
  14.                 scanf("%f", &i);
  15.         }
  16.         else if(s > b){
  17.                 i=(a * b) + tan( (s / 3) + 3.14 / 12);
  18.                 printf("i=%f", i);
  19.         }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement