trojanxem

Untitled

Mar 13th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <cstdio>
  2. #include <conio.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7. int n;
  8. printf("Ile liczb chcesz podac: \n");
  9. scanf("%d", &n);
  10. double liczby;
  11. int sumaliczb;
  12. int j;
  13.  
  14. int koniec,poczatek;
  15. printf("Podaj poczatek przedzialu: \n");
  16. scanf("%d", &poczatek);
  17. printf("Podaj koniec przedzialu: \n");
  18. scanf("%d", &koniec);
  19. int i;
  20. for(i = 1; i <=n; i++);
  21. {
  22. printf("Podaj %d liczbe: \n", i);
  23. scanf("%lf", &liczby[i]);
  24.  
  25. if ( liczby[i] => poczatek && liczby[i] <= koniec )
Advertisement
Add Comment
Please, Sign In to add comment