double total;
for (int i = start; i <= end; i+=delta)
{
}
Meant to use this
double total = 0; (int i = begining; i <= last; i+=change)




Posted 08 October 2012 - 09:54 AM
double total;
for (int i = start; i <= end; i+=delta)
{
}
double total = 0; (int i = begining; i <= last; i+=change)
Posted 08 October 2012 - 10:37 AM
sum = 1 * 2 * 3 * 4 * 5 + ???? + ???? + :
Posted 08 October 2012 - 10:44 AM
double total = 0; (int i = begining; i <= last; i+=change)
This post has been edited by Skydiver: 08 October 2012 - 10:49 AM
Reason for edit:: Fixed code tags.
Posted 08 October 2012 - 10:52 AM
This post has been edited by AdamSpeight2008: 08 October 2012 - 10:52 AM
Posted 08 October 2012 - 10:55 AM
Posted 08 October 2012 - 10:57 AM
for(int i = beginning; i <= end; i += change)
{
Console.WriteLine(i);
}
string sequence = "";
for(int i = beginning; i <= end; i += change)
{
sequence += " " + i.ToString();
}
This post has been edited by Skydiver: 08 October 2012 - 10:58 AM
Posted 08 October 2012 - 10:59 AM
Posted 08 October 2012 - 11:01 AM
a = 1; b = 2; c = 3; d = 4; e = 5; product = a * b * c * d * e;
step0 = 1 * a; step1 = step0 * b; step2 = step1 * c; step3 = step2 * d; step4 = step3 * e; product = step4;
This post has been edited by Skydiver: 08 October 2012 - 11:03 AM
Posted 08 October 2012 - 11:03 AM
Posted 08 October 2012 - 11:06 AM
Posted 08 October 2012 - 11:07 AM
Posted 08 October 2012 - 11:08 AM
Posted 08 October 2012 - 11:09 AM
double x = 1;
for(int i = beginning; i <= end; i += change)
{
result *= i;
}
Posted 08 October 2012 - 11:11 AM
Posted 09 October 2012 - 02:46 PM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
