Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void wczytywanie_dziedziny(double *dziedz1, double *dziedz2)
  5. {
  6. printf("Podaj lewą granicę dziedziny: ");
  7. scanf("%lf",&dziedz1);
  8. printf("\nWczytano %lf", dziedz1);
  9. printf("\nPodaj prawą granicę dziedziny: ");
  10. scanf("%lf",&dziedz2);
  11. printf("\nWczytano %lf",dziedz1);
  12. printf("\nWczytywanie dziedziny zakonczone pomyslnie");
  13. }
  14.  
  15.  
  16. int main()
  17. {
  18. double dziedz1;
  19. double dziedz2;
  20. wczytywanie_dziedziny(&dziedz1,&dziedz2);
  21. printf("\n%lf %lf",dziedz1,dziedz2);
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement