answersLogoWhite

0


Best Answer

#include<stdio.h>

int main(){

int a[10],i,n,m,c=0;

printf("Enter the size of an array: ");

scanf("%d",&n);

printf("Enter the elements of the array: ");

for(i=0;i<=n-1;i++){

scanf("%d",&a[i]);

}

printf("Enter the number to be search: ");

scanf("%d",&m);

for(i=0;i<=n-1;i++){

if(a[i]==m){

c=1;

break;

}

}

if(c==0)

printf("The number is not in the list");

else

printf("The number is found");

return 0;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

c program for fibonacci search

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Program to perform Fibonacci search in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where does Fibonacci sequence occurs in nature?

flowers and nautilus shells are a couple. You can search for 'Fibonacci nautilus' or 'Fibonacci nature' for more information.


What are the disadvantages of Fibonacci search?

There are a few disadvantages of the Fibonacci search: It can be slower than other search algorithms if the data is not sorted. It can be less accurate than other search algorithms if the data is not sorted. It can be more difficult to implement than other search algorithms.


How is Lenardo Fibonacci discoverey used in science?

Your mind will be blown if you search Phi, The golden ratio, or the fibonacci sequence. It has to do with everything.


Where do i get GBA Emulator?

You can do a search for Virtual Boy, which is a Game Boy emulator program. You will have to perform searches for the games though, as the program comes with none.


How do you run graphics program in C?

pro c language to implement linear search using pointers


Is the program Inuyasha is it Japanese?

Inuyasha can be found in English, Japanese, and many other language's. when you want to search inuyasha episodes up in English or in a language other then Japanese, search: 'Inuyasha episode 1 (language) dub'. when you want to find it in Japanese but want the sub titles of a different language, search: 'Inuyasha episode 1 (language) sub' i hope it helps (^-^)


How do you make a programing?

First you download a PC communiti program . And that's it - Comment on this Answer , that's not how you make a program ... Just go to www.YouTube.com and search " How to make a program " .. Am Sure there will be a video that well help ! You need to learn some programming language.


Write a program to maintain medical shop in c language?

Ask via an internet search engine; it will find vendors for you.


How do you perform a auto channel search on a Samsung flat screen TV?

Press the Menu button on the remote. Choose Channel, and then choose Auto Program.


What channel is fcw on dish network?

You can perform a search on your receiver to see when FCW is playing in your area. Just press the Menu button on your DISH remote to bring up the Main Menu, then press 2 (Themes and Search). Select Keyword and input the title of the program you are inquiring about. Select Done. On the Themes and Search screen, select Get Results. The receiver will display all matching results on your TV screen.


Examples of algorithms?

bisection algorithm (see link)Euclid's algorithm (see link)Fibonacci search (see link)


How can one perform a binary search?

One can perform a binary search easily in many different ways. One can perform a binary search by using an algorithm specifically designed to test the input key value with the value of the middle element.