Computer Science Canada How do you make the for statement max number be the number of the get statement? |
Author: | Velocity [ Tue Nov 15, 2011 4:46 pm ] | ||
Post subject: | How do you make the for statement max number be the number of the get statement? | ||
My question is exactly as the thread reads, i want to make the max number of years in the for statement. |
Author: | DemonWasp [ Tue Nov 15, 2011 5:09 pm ] | ||||
Post subject: | RE:How do you make the for statement max number be the number of the get statement? | ||||
Your problem doesn't have anything to do with the get statement. The problem is that you must use integers (..., -2, -1, 0, 1, 2, 3, ...) as bounds on for statements; you cannot use real numbers (3.14). Not allowed:
Totally allowed:
If you read the error statement that Turing gives you when you try this, it's fairly obvious (it even highlights years): Turing wrote: 'for' range bounds must be both integers, chars, or elements of the same enumerated type |
Author: | Velocity [ Tue Nov 15, 2011 5:20 pm ] |
Post subject: | RE:How do you make the for statement max number be the number of the get statement? |
nononono but you dont understand what im trying to get at, i want for it to display number down the screen under the years column so that for how many ever years you type in it enters that many in the column |
Author: | Aange10 [ Tue Nov 15, 2011 5:38 pm ] | ||||||
Post subject: | RE:How do you make the for statement max number be the number of the get statement? | ||||||
Velocity: This is exactly why you should fill out the pre-formatted post completely, instead of erasing it all. Velocity wrote: How do you make the for statement max number be the number of the get statement? My question is exactly as the thread reads, i want to make the max number of years in the for statement. I'm going to take it this is your problem... Lets break it down - literally: How do you make the for statement
max numbers be the number of the get statement
Now putting your question back together... How do you make the for statement max number be the number of the get statement?
|
Author: | evildaddy911 [ Wed Nov 16, 2011 7:58 am ] |
Post subject: | RE:How do you make the for statement max number be the number of the get statement? |
try using "months" as an integer instead of "years" as a real |