Guest User

Untitled

a guest
Jul 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. void main( void )
  8. {
  9.     double a,x,c,F;
  10.     cin >> a >> x >> c;
  11.     if ( x+5<0 && c==0)
  12.                 F=1/(a*x);
  13.     else  
  14.         if(x+5<0 && c!=0)
  15.             F=(x-a)/x;
  16.         else
  17.             F=(10*x)/(c-4);
  18.  
  19.     cout<< "F="<< F <<endl;
  20.     cin >> a;
  21. }
Add Comment
Please, Sign In to add comment