Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int v[5] = {};
- int i = 0;
- int c = 0;
- printf("Please enter 5 integers:\n");
- while (scanf("%d", &c) != 1) {
- v[i] = c;
- ++i;
- }
- for(int j=0;j<5;j++)
- printf("%d",v[j]);
- //int result = binsearch(9, v, 5);
- //printf("result= %d", result);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement