Advertisement
JuliaPopadowska

zad 1/15 PN

May 27th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include<math.h>
  2.  
  3. int main() {
  4.  
  5.     double x, y,T;
  6.     printf_s("podaj x i y: ");
  7.     scanf_s("%lf %lf", &x, &y);
  8.     if (y < 3 && x>5)
  9.     {
  10.         printf_s("Brak rozwiazania");
  11.         return 0;
  12.     }
  13.        
  14.  
  15.     T = ((log(x - 5) + 1) / (sqrt(y - 3)));
  16.  
  17.     printf_s("%lf", T);
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement