I'm trying to learn python on a website and I am completely stuck on one of the problems.
It says "The square numbers are the integers of the form K × K, e.g. 9 is a square number since 3 × 3 = 9. Write a program that reads an integer n from input and outputs all the positive square numbers less than n, one per line in increasing order."
They start you off with: n = int(input())
They also give a hint that says: "Use while counter*counter < n: to build a while loop; the body of the loop should print out the value of counter*counter* and increase counter."
The problem is located here: cscircles.cemc.uwaterloo.ca/
under the heading 7:rich
under the subheading 7C: Loops
under the name square census.
Any help would be appreciated. ThanksProgramming & Design8 years ago
I have a 1998 Ford Escort Sport and it has the P1451 code. P1451 is a Evaporative Emission System Vent Control Circuit Malfunction. I have been digging around the internet and found that the problem is a solenoid or a sensor. I haven't been able to figure out if it is the purge solenoid or the vent solenoid. Any help would be much appreciated.3 AnswersMaintenance & Repairs9 years ago
I have a 1998 Ford Escort and it does not run. It cranks, but it doesn't start. I do not hear my fuel pump hum anymore, so I am not getting any fuel into the engine. I have recharged the battery, checked the fuel pump for power(its there), changed the fuel pump and fuel filter, changed the spark plugs, and looked at the timing chain (still rotating). I have done everything i can think of to fix this, but still haven't solved the problem. The only other think I guess it might be would be the starter, but i wouldn't know how to go about checking that...Does anyone have any ideas on what else i can do?5 AnswersMaintenance & Repairs9 years ago
I have a 1998 Ford Escort, it was running fine until it started to take a little work to get the engine running. Then a few days ago, it just stopped coming on. The car cranks, but that's all, nothing happens after that. The spark plugs were replaced right after car stopped running. Does anyone have any clue as to what my problem could be?3 AnswersFord9 years ago