Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- void main ()
- {
- int a,b,c;
- float y;
- cout<<"Unesite a i b: \m";
- cin>>a>>b;
- y=a/float(b);
- if(b==13||(b>127&&b<=255)||b==a)
- cout<<y;
- else if(a>0&&!(a%19==0)&&!(a>=111&&a<555)&&b!=0&&a>(3*b))
- cout<<y;
- else
- {
- cout<<"Unesite broj c: \n";
- cin>>c;
- cout<<y=a*b/sqrt(float(c));
- }
- system ("pause>0");
- }
Advertisement
Add Comment
Please, Sign In to add comment