trojanxem

Untitled

Oct 22nd, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. int main()
  4. {
  5.     int x = 0;
  6.     double y = 0;
  7.     int *xy;
  8.     double *py;
  9.     xy = &x;
  10.     py = &y;
  11.     printf("Podaj liczbe x: \n");
  12.     scanf("%d", xy);
  13.     printf("Podaj liczbe y: \n");
  14.     scanf("%lf", py);
  15.     printf("Bezposrednia: x %d y %lf \n, przy uzyciu wskaznikow x %d y %lf \n", x,y,*xy,*py);
  16.     getch();
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment