December 2009
4 posts
3 tags
Me: Hey there. One question: how did your test go?
Funny Person: It was okay.
Me: Vague.
Funny Person: As in, it was neither good nor bad.
Me: You are rationalising. Be specific.
(Funny Person has gone offline)
4 tags
Finding the Number of zeroes in the product of all...
rahuljose:
I am sure there is a simpler mathematical solution but this is good enough for now I have always been a brute force guy sadly
#include<stdio.h> void main() { int i; long double p=1; for(i=1;i<101;i++) { p=p*i; } printf("Product of all numbers between 1&100 is %LG \n",p); }
No Compiler installed no issues head to http://codepad.org/
PS:-
The answer is 152...
EPIC WOW.
I’m going to be following Pranav and everything he does from now on.
November 2009
56 posts
6 tags