Yahoo 知識+ 將於 2021 年 5 月 4 日 (美國東岸時間) 停止服務,而 Yahoo 知識+ 網站現已轉為僅限瀏覽模式。其他 Yahoo 資產或服務,或你的 Yahoo 帳戶將不會有任何變更。你可以在此服務中心網頁進一步了解 Yahoo 知識+ 停止服務的事宜,以及了解如何下載你的資料。

ipod Geek
C Program Quincy HELP!!!?
Hi, I took a programing course and we are given a project to construct a huge program which has to do with the Fibonacci sequence. So far I can't complete the first part of the project and its driving me nuts!
Here is the first part:
1) Display the complete Fibonacci sequence until you reach a value less or equal than
1,000,000 (one million).
Here is my code:
include <stdio.h>
int
main (void)
{
int a = 1;
int b = 0;
int value;
int i;
printf("Please enter a number that will act as a sentinel for the Fibonacci sequence - this number must be less than or equal to 1,000,000\n");
scanf("%d", &value);
if(value <= 1000000)
{
while (a <= value && b <= value)
{
printf("%d\n", a);
b+= a;
printf("%d\n", b);
a+= b;
}
}
else
printf("The number acting as a sentinel must be less than or equal to 1,000,000");
printf("%d", i);
}
Any help would be appriciated.
Thanks in advance
1 個解答Programming & Design8 年前Bigger and Better Setup!?
Hi bass lovers,
I recently decided to do a new install. I will be using:
2 AudioBahn 10" subwoofers
2 Alpine MRP-500 amplifiers (debating 1 or 2)
Custom Sealed or Ported Enclosure
Trunk space is the issue and I want to do a flush clean install so it seems as if the subwoofers are a part of the trunk. Something like this:
http://carphotos.cardomain.com/ride_images/3/130/1...
I want to port my box towards the cabin area through the center console.
Pic: http://www.hybridcars.com/files/imagecache/full_50...
So the Subwoofer will face the trunk and the port will face towards the cabin area allowing sound waves to travel into the cabin.
My question is that will this setup be louder, the same, or worse than the tradition ported box. Someone said that doing this will cause a lot of cancellation? Is this true?
Any input is appreciated!
btw the install will be done in a 2011 3 series.
Thanks :)
Car Audio9 年前2011 328xi Subwoofer Install HELP!?
I got a complete Amplifier kit and installed a Apline MRP-M500 Amplifier to 2 Audioban subwoofers. I bought a line out converter from walmart and used the rear speakers for signals. The amp powers up but no sound comes from the subwoofers. I turned all the gains up and set the Low Pass Filter to 200 Hz so it accepts all ranges. But STILL NO SOUND!!!! Because its a bmw it took me 5 hours to install and its really disappointing to have no results in the end.
The subs and amp are perfect since I used them in my previous car. My guess is that the LOC I bought from walmart is faulty. What should I do?????
2 個解答Car Audio9 年前I have $1000 to spend?
My birthday is coming up and my dad made me a deal of $1000 as birthday money. It can only be ONE item and something I can keep and use for the long run. It can't be a car because it requires other expense (gas, insurance...) nor can be anything illegal (drugs, hookers...). What should I get?
BTW im turning 17 & Im interested in technology.
8 個解答Personal Finance10 年前16 and smoking because of stress...?
Im third year into high school. I have uncontrollable headaches and suicidal thoughts. I think its mainly because of my disability I have on my arm. Due to this I am not able to play sports or lift weights properly. I try my best to cover it and forget it but my friends notice it and question all the time. I have lost all confidence in my self. To cope with this problem I started smoking weed, it helped me reduce my stress but at the same time my marks dropped crazy. I got tons of heat from my parents and teachers and still do. I am trying my best to get my marks back up but quiting weed is making everything harder.
I made the biggest mistake to start smoking, I cant go one day without smoking. It helps me relax and reduce my stress but at the same time my friends are hating on me for smoking. I tried quiting but after the 3rd day I couldn't control my raging temper and weird thoughts in my head.
I don't know what to do. How can I escape this cage of torture?
4 個解答Respiratory Diseases1 十年前What is Calcium Bicarbonate?
I need this substance for a science fair experiment but, I don't know what product contains this ingredient.
2 個解答Chemistry1 十年前Which Glow plug should I use!!!!?
I bought the new Traxxas Revo 3.3 and after breaking it in, i needed to change the glow plug because its filled with waste from the engine. But i just don't know which Glow plug to use, cuz i have been told that big block engines need colder glow plugs and i have a OS HOT glow plug. Can it work aswell?
2 個解答Maintenance & Repairs1 十年前How i Put Music videos on my ipod nano?
Hi
I have 2gen nano, new. I was just wondering how can I music videos on a nano and watch them. I tried every easy way but is there any trick to it.
P.S. I heard about Linux but it changes the hard drive of your ipod, so is it safe?
5 個解答Music & Music Players1 十年前