Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- printf("Podaj szukana wartosc z zakresu %d do %d\n", min, max);
- int x;
- scanf("%d", &x);
- int znaleziono = 0;
- for(int i = 0; i < size; i++) {
- if(tab[i] == x) {
- znaleziono = 1;
- printf("Liczba znajduje sie na pozycji %d w tablicy", i);
- break;
- }
- }
- if(znaleziono == 0) {
- printf("Nie znaleziono tej liczby w tablicy");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment