Commit de8eab89 by unknown

fixed minor bug

parent 197c5f10
Showing with 3 additions and 3 deletions
......@@ -73,7 +73,7 @@ int main() {
printf("Please input increment value: ");
scanf("%f", &incre);
// If increment is snaller than or equal to 0, we return an error
// If increment is smaller than or equal to 0, we return an error
if (incre <= 0) {
printf("Increment have to be > 0");
return 1;
......@@ -99,8 +99,8 @@ int main() {
y = log(i + 5) / sqrt(7 + 5*i + i*i);
// This stores and display the result (y) by using the addToTable function
yResults[i] = y;
addToTable(i, yResults[i]);
yResults[number - 1] = y;
addToTable(i, yResults[number - 1]);
if (isnan(y)) y = lim - 1;
// As number is = 16, it is too much and we stop the loop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment