![]() |
Basics of C programming
I wrote code for sinx
But it is showing output as INF Why INF?? what's wrong with code .... plz help Code:
#include<stdio.h> |
Re: Basics of C programming
In you code you are using the for loop that starts from zero.
Code:
for(i=0;i<n;i++)Code:
t=(sig*x*x)/(2*i*(2*i+1));zStart your loop from 1 (ie for(i=1;i<n;i++) |
| All times are GMT +5.5. The time now is 10:05. |