Guest User

Untitled

a guest
May 21st, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. /*
  5. uživatel zadá celé èíslo, jestli èíslo není menší než 5, tak vypoètìte jeho odmocninu a
  6. 4tou mocnin
  7. */
  8. int main()
  9. {
  10. int x;
  11. float odmocnina, mocnina;
  12. scanf ("%d",x);
  13. if (x>5)
  14. {
  15. odmocnina=sqrt(x);
  16. mocnina=pow (odmocnina, 4.0);
  17. printf ("proud je %f",mocnina);
  18. }
  19. else
  20. {
  21. printf ("nelze");
  22. }
  23. getch();
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment