Thanks .......... for your suggestion.................



________________________________
From: Tyler Littlefield <[email protected]>
To: [email protected]
Sent: Friday, 13 March, 2009 8:42:23 PM
Subject: Re: [c-prog] an example about factorial numbers


google.com... .that...might. ..work... if...you. ..check.. .you...should. 
..also... get....pakman. ..to...clean. ..up...your. ..messages. .. ;)

Thanks,
Tyler Littlefield
Web: tysdomain.com
email: ty...@tysdomain. com
My programs don't have bugs, they're called randomly added features.

----- Original Message ----- 
From: girish gandhi 
To: c-p...@yahoogroups. com 
Sent: Friday, March 13, 2009 9:04 AM
Subject: Re: [c-prog] an example about factorial numbers

guys.......can anyone teach design pattern in c++......... ....

____________ _________ _________ __
From: praveen indian85 <praveen_indian85@ yahoo.co. in>
To: c-p...@yahoogroups. com
Sent: Friday, 13 March, 2009 8:20:05 PM
Subject: Re: [c-prog] an example about factorial numbers

hi friends,
u wrote factorial prg is exactly write.but it calculates upto factorial upto 13 
factorial .what its reason is u had declare fak variable is int type that is 
the reason.my suggestion is just change the fak variable type either long or 
double

--- On Fri, 13/3/09, ruhatadiyaman <ruhatadiyaman@ yahoo.com. tr> wrote:

From: ruhatadiyaman <ruhatadiyaman@ yahoo.com. tr>
Subject: [c-prog] an example about factorial numbers
To: c-p...@yahoogroups. com
Date: Friday, 13 March, 2009, 12:22 PM

i wrote a code which calculates the factorials of 1-20. it gives the correct 
result until 13 but it is not correct after 13. it even gives negative results.
this is my code
/*faktorial* /
#include<stdio. h>
int main()
{
int x, y, fak;

for(x=1;x<=20; x++){
printf("%d!\ t", x);
fak=x;
if(x>=2){
for(y=x;y>=2; y--){
fak=fak*(y-1) ;
}
}
printf("%d\n" , fak);
}
getch();
return 0;
}
why would it be?
best regards..

Check out the all-new Messenger 9.0! Go to http://in.messenger .yahoo.com/

[Non-text portions of this message have been removed]

Add more friends to your messenger and enjoy! Go to http://messenger. 
yahoo.com/ invite/

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[Non-text portions of this message have been removed]

Reply via email to