Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <cmath>
- using namespace std;
- void main( void )
- {
- double a,x,c,F;
- cin >> a >> x >> c;
- if ( x+5<0 && c==0)
- F=1/(a*x);
- else
- if(x+5<0 && c!=0)
- F=(x-a)/x;
- else
- F=(10*x)/(c-4);
- cout<< "F="<< F <<endl;
- cin >> a;
- }
Add Comment
Please, Sign In to add comment