Commit de8eab89 by unknown

fixed minor bug

parent 197c5f10
Showing with 3 additions and 3 deletions
...@@ -73,7 +73,7 @@ int main() { ...@@ -73,7 +73,7 @@ int main() {
printf("Please input increment value: "); printf("Please input increment value: ");
scanf("%f", &incre); 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) { if (incre <= 0) {
printf("Increment have to be > 0"); printf("Increment have to be > 0");
return 1; return 1;
...@@ -99,8 +99,8 @@ int main() { ...@@ -99,8 +99,8 @@ int main() {
y = log(i + 5) / sqrt(7 + 5*i + i*i); y = log(i + 5) / sqrt(7 + 5*i + i*i);
// This stores and display the result (y) by using the addToTable function // This stores and display the result (y) by using the addToTable function
yResults[i] = y; yResults[number - 1] = y;
addToTable(i, yResults[i]); addToTable(i, yResults[number - 1]);
if (isnan(y)) y = lim - 1; if (isnan(y)) y = lim - 1;
// As number is = 16, it is too much and we stop the loop // 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