kiwser

Untitled

Jun 9th, 2021
467
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int arr[10],key,i;
  6.     for(i = 0; i < 5; i++){
  7.         scanf("%d",&arr[i]);
  8.     }
  9.     printf("KEY VALUE: ");
  10.     scanf("%d",&key);
  11.     for(i = 0; i < 5; i++){
  12.         if(key == arr[i]){
  13.             printf("FOUND\n");
  14.             return 0;
  15.         };
  16.     }
  17.     printf("NOT FOUND\n");
  18.  
  19. }
RAW Paste Data