rijads

Untitled

Dec 1st, 2011
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. void main ()
  5. {
  6.     int a,b,c;
  7.     float y;
  8.     cout<<"Unesite a i b: \m";
  9.     cin>>a>>b;
  10.     y=a/float(b);
  11.     if(b==13||(b>127&&b<=255)||b==a)
  12.         cout<<y;
  13.     else if(a>0&&!(a%19==0)&&!(a>=111&&a<555)&&b!=0&&a>(3*b))
  14.         cout<<y;
  15.     else
  16.     {
  17.         cout<<"Unesite broj c: \n";
  18.         cin>>c;
  19.         cout<<y=a*b/sqrt(float(c));
  20.     }
  21.     system ("pause>0");
  22. }
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment