|
From: Vincent O. <ovo...@ya...> - 2003-03-17 10:57:49
|
Please wrote a program that does a large number of
calculations within a loop for each value of a real
number that is used for the loop. However, when I
compiled and ran the program, it only recognized the
first value of the loop, while in the actual sense it
is supposed to calculate for three values of the real
number. Could someone let me know how to design the
loop to recognize the other values. The loop is as
shown below:
for(i=1;i<=5;i++);
{
theta2 = theta2 + 30.0;
if(theta2 >= 90.0);
}
The output (Print) statement is also within the loop.
Thank you.
Vincent.
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
|