Do you know some algorithms in C?

Philippines
December 18, 2006 7:27pm CST
I am collecting different algorithms (sorting, searching, factorial, palindrome, fibonacci, etc.). Do you some? Please share them with me. If you don't mind, kindly share with me the working program code.
7 responses
@dholey (1383)
• India
21 Dec 06
here comes the program for your mentioned output void main( ) { int r,c,x,t; for(r=1,x=0;r
@dholey (1383)
• India
21 Dec 06
sorry i made it in a little hurry it will show different outputthe output wii be 1 3 2 6 5 4 10 9 8 7 15 14 13 12 11
@dholey (1383)
• India
21 Dec 06
your required output will be given by following code void main( ) { int r,c,x,t; for(r=1,x=0;r
• Philippines
21 Dec 06
Thank you very much for providing me the algo! Thank God, I met you in mylot. You are an instructor right? Can I ask some help from? I want to learn Java. Thought I am a programmer, I am just using C/C++. I have an idea about Java but I don't use it in my work. But I really want to learn Java. Please?
@jaekumar (55)
• India
20 Dec 06
dont worry at all ....u will get to learn all the languages likes i did with the learnin videos ..its very easy ...the only thing u must do is to download the video n watch n learn it !
@dholey (1383)
• India
20 Dec 06
i am interested !!! please tel, from where we can download , and how deep knowledge that video gives? the
• Philippines
21 Dec 06
Please tell me how to download those videos. Thank you in advance. I hope you will continue to respond to my request.
• India
20 Dec 06
jus comment here n i will tell u how to download ...don worry its all free of cost but not time !
@dholey (1383)
• India
20 Dec 06
long factorial(long f) { if (f
@dholey (1383)
• India
21 Dec 06
i am workinfg as PROGRAMMING INSTRUCTOR from past 13 years,i will make logic for the last one too, well in the given output it should be 1 only and then in next line 3 2 should appear, am i right, i am asking because the pattern is mismatched , just wait few mins i will give you the algo
• Philippines
21 Dec 06
Thank you for all the algorithms you gave me. If you still have other kinds of algorithms please share them with me. Are you also collecting algorithms? Do you know the algorithm for this one: 1 2 3 6 5 4 7 8 9 10 15 14 13 12 11
@dholey (1383)
• India
20 Dec 06
REMEMBER TO INCLUDE sting.h BEFORE USING THIS CODE void main() { char s1[20],s2[20]; printf("\n ENTER STRING "); gets(s1) ; strcpy(s2,s1); strrev(s2); if(strcmp(s1,s2)==0) printf("\n PALINDROME "); else printf("\n NON PALINDROME "); }
@dholey (1383)
• India
20 Dec 06
INCLUDE STRING.H BEFORE RUNNING THE CODE
@dholey (1383)
• India
20 Dec 06
int fibo(int f) { if (f==1) return (0); else if(f==0) return(0) else return(fibo(f-2) + fibo(f-1)) ; } void main () { int x; for(x=0;x
@dholey (1383)
• India
22 Dec 06
please correct the code ,..... if(f==1) return(1); i have mentioned return (0), which is wrong.... so p;ease correct it.
@dragonxie (245)
• China
19 Dec 06
I do like c/c++. I have some C/C++ code coded by myself.But I don't know how to give you.
• Philippines
21 Dec 06
You can type them here if you want. I will appreciate very much if you do it. Please share them with me. Thanks!
@kaniam (582)
• India
25 Dec 06
yes weite to meat mukherjee. mainak@rediffmail.com i will help you