Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {
  5. int a,i, tab[1000];
  6. scanf("%d", &a);
  7. while(a>1000)
  8. {
  9. printf("Liczba elementow nie moze przekraczac 1000\n");
  10. scanf("%d",&a);
  11. }
  12. i=0;
  13. while (i<a){
  14. scanf("%d", tab[i]);
  15. i=i+1;
  16. }
  17.  
  18.  
  19. return 0;
  20.  
  21.  
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement