trojanxem

Untitled

Oct 22nd, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <conio.h>
  4.  
  5. int main()
  6. {
  7.     double tab[10];
  8.     int i = 0;
  9.     double *pa = tab;
  10.  
  11.     for(i = 0 ; i < 10 ; i++)
  12.     {
  13.         printf("Podaj #%d element tablicy: \n", i);
  14.         scanf("%lf", pa+i );
  15.  
  16.     }
  17.     for(i = 0 ; i < 10 ; i++)
  18.     {
  19.         printf("#%d element tablicy to : %lf \n", i, *(pa+i));
  20.  
  21.  
  22.     }
  23.   getch();
  24.   return 0;
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment