Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #27.9K
~4K People Reached
Favorite Forums
Favorite Tags
3 Posted Topics
the root is up to tenth place w/out using sqrt [CODE] float sqroot(int x) { a=1; /*integer x & nearest assumption integer factor a*/ while(a*a<=x) { a++; } a--; if(a*a==x) { return a; } else { sqqrrt = ((x/a) + a) / 2.0; return sqqrt; }[/CODE] it is not just …
Re: Prime Number
simply get the number of factor/s to determine whether prime or not: [CODE] for(a=2; a<x; a++) { if(x % a == 0) { factor++; } } [/CODE] then check the definition of prime numbers, if happens the factors of x is 5,000,001 then it is not prime. :O
honestly i was new to C and i just need a codes for finding the mean for grouped data. i hope this site can least help me. you have my thanks.
The End.
reojavier