From AMANIANS becomes LEWISIANS....
Thank God....
*****College Life*****
Tuesday, November 15, 2011
Wednesday, September 14, 2011
TURBO PASCAL
HELP YOUR SELF
Loops
Looping means repeating a statement or compound statement over and over until some condition is met.
There are three types of loops:
fixed repetition - only repeats a fixed number of times
pretest - tests a Boolean expression, then goes into the loop if TRUE
posttest - executes the loop, then tests the Boolean expression
In Pascal, the fixed repetition loop is the for loop. The general form is:
for index := StartingLow to EndingHigh do
statement;
The index variable must be of an ordinal data type. You can use the index in calculations within the body of the loop, but you should not change the value of the index. An example of using the index is:
sum := 0;
for count := 1 to 100 do
sum := sum + count;
The computer would do the sum the long way and still finish it in far less time than it took the mathematician Gauss to do the sum the short way (1+100 = 101. 2+99 = 101. See a pattern? There are 100 numbers, so the pattern repeats 50 times. 101*50 = 5050).
In the for-to-do loop, the starting value MUST be lower than the ending value, or the loop will never execute! If you want to count down, you should use the for-downto-do loop:
for index := StartingHigh downto EndingLow do
statement;
In Pascal, the for loop can only count in increments (steps) of 1.
Loops
Looping means repeating a statement or compound statement over and over until some condition is met.
There are three types of loops:
fixed repetition - only repeats a fixed number of times
pretest - tests a Boolean expression, then goes into the loop if TRUE
posttest - executes the loop, then tests the Boolean expression
In Pascal, the fixed repetition loop is the for loop. The general form is:
for index := StartingLow to EndingHigh do
statement;
The index variable must be of an ordinal data type. You can use the index in calculations within the body of the loop, but you should not change the value of the index. An example of using the index is:
sum := 0;
for count := 1 to 100 do
sum := sum + count;
The computer would do the sum the long way and still finish it in far less time than it took the mathematician Gauss to do the sum the short way (1+100 = 101. 2+99 = 101. See a pattern? There are 100 numbers, so the pattern repeats 50 times. 101*50 = 5050).
In the for-to-do loop, the starting value MUST be lower than the ending value, or the loop will never execute! If you want to count down, you should use the for-downto-do loop:
for index := StartingHigh downto EndingLow do
statement;
In Pascal, the for loop can only count in increments (steps) of 1.
Wednesday, August 10, 2011
***********___WELCOME___***********
Thank you for visiting on my blogsite...follow me and be my friend.
FOREVER
We were 17
But everything still seemed so clear to me
Whispering and watching falling stars
From my beat up car
In the parking lot
Almost 10 o'clock
We went for one last walk
I couldn't stop
Thinkin' if I should try
A kiss goodbye
I'll wait forever
It's better late then never
Can't forget her
Like a movie in my mind
Keeps playing over and over
Wanna hold her, I'll wait forever
Time goes by but still I find
Can't keep you off my mind
A broken piece of me I left behind
When you were mine
(I was fallin', fallin' I was fallin')
Our last embrace
Those perfect tears fell down your perfect face
Your lips said words that I just can't erase
Was this a waste?
I'll wait forever
It's better late then never
Can't forget her
Like a movie in my mind
Keeps playing over and over
Wanna hold her again
I kept her letter in my wallet
And her picture in my phone
She had our favourite song set as her ringtone
We had everything we wanted
'Till we let it slip away
But we both know some things will never change
Time goes by
But still I find
I can't keep you off my mind..
I'll wait forever
It's better late then never
Can't forget her
Like a movie in my mind
Keeps playing over and over
Wanna hold her, I'll wait forever
I'll wait forever
It's better late then never
Can't forget her
Like a movie in my mind
Keeps playing over and over
Wanna hold her, I'll wait forever
But everything still seemed so clear to me
Whispering and watching falling stars
From my beat up car
In the parking lot
Almost 10 o'clock
We went for one last walk
I couldn't stop
Thinkin' if I should try
A kiss goodbye
I'll wait forever
It's better late then never
Can't forget her
Like a movie in my mind
Keeps playing over and over
Wanna hold her, I'll wait forever
Time goes by but still I find
Can't keep you off my mind
A broken piece of me I left behind
When you were mine
(I was fallin', fallin' I was fallin')
Our last embrace
Those perfect tears fell down your perfect face
Your lips said words that I just can't erase
Was this a waste?
I'll wait forever
It's better late then never
Can't forget her
Like a movie in my mind
Keeps playing over and over
Wanna hold her again
I kept her letter in my wallet
And her picture in my phone
She had our favourite song set as her ringtone
We had everything we wanted
'Till we let it slip away
But we both know some things will never change
Time goes by
But still I find
I can't keep you off my mind..
I'll wait forever
It's better late then never
Can't forget her
Like a movie in my mind
Keeps playing over and over
Wanna hold her, I'll wait forever
I'll wait forever
It's better late then never
Can't forget her
Like a movie in my mind
Keeps playing over and over
Wanna hold her, I'll wait forever
Subscribe to:
Posts (Atom)

