Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void wczytywanie_dziedziny(double *dziedz1, double *dziedz2)
- {
- printf("Podaj lewą granicę dziedziny: ");
- scanf("%lf",&dziedz1);
- printf("\nWczytano %lf", dziedz1);
- printf("\nPodaj prawą granicę dziedziny: ");
- scanf("%lf",&dziedz2);
- printf("\nWczytano %lf",dziedz1);
- printf("\nWczytywanie dziedziny zakonczone pomyslnie");
- }
- int main()
- {
- double dziedz1;
- double dziedz2;
- wczytywanie_dziedziny(&dziedz1,&dziedz2);
- printf("\n%lf %lf",dziedz1,dziedz2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement