Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5.  
  6. double tablica[8];
  7. int j=0;
  8.  
  9. int main(int argc, char *argv[])
  10. {
  11.  
  12. while(j<=7)
  13.     {
  14.     scanf("%d\n",&tablica[j]);
  15.     j++;
  16.     }
  17.    
  18.    
  19. for(j=0;j<=7;j++)
  20. {
  21. printf("\nwynik indeksu tablicy %d", tablica[j]);
  22. }
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement