read my comments i put into your code...
Type: Posts; User: agathery
read my comments i put into your code...
actually it should be like that
sum = 0;
counter = 1;
while(counter<=num1)
{
sum += num2;
counter++;
}
i corrected it, you shouldn't space between ++ and count , or ! and =,
other mistake is that c=getchar() doesnt return c so you should first do it and then check if c is \n ...
...
i wrote with using this sequence
http://img138.imageshack.us/img138/1696/90511389.jpg
if you want to find exactly result, you have to find limit, but 1000 loop is also give very very close...
ok thanks for advice;)
hmm sorry i missed that point, then you can forget about it :)
you are right but there is no specific question because i couldnt do anything yet:), what i want to learn is the procedure, how can i start, how i use input etc.
by the way, sorry, my english is...
sorry it has very long specifications and some character that i cant copy here:/
here i my code find squareroot without math.h:)
#include<stdio.h>
int main(){
int i;
double number,x;
hi i have a homework and it is really challenging problem, i need a master to advice me something, here is the pdf file of homework if you have any idea how to do , please add my msn adress ...