Answer Posted / prasad shetty
773,2753
The logic looks like this
The number at position x will be
(number at x-1) * 3 + (number at x-2) *2
Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What is a char in c?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
How do you search data in a data file using random access method?
What are local static variables? How can you use them?
Is there a built-in function in C that can be used for sorting data?
What is time null in c?
What is the difference between union and structure in c?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Explain union.
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
How are pointers declared in c?
What is the explanation for the dangling pointer in c?
What is the symbol indicated the c-preprocessor?
What is the stack in c?