Custom Search

Thursday, 22 December 2011

Q11)Write a program to find factorial,power and fibonacci series using recursion

Author: Sanif S S  Site: theeduzone.blogspot.com  Email: sanifss@gmail.com #include<stdio.h> #include<conio.h> int fibonacci(int); int factorial(int); int power(int,int); void main() {  clrscr();  int c,f,i=1,m,x,p,n,ch;  do  {   printf("\n\n\t\t[ menu ]\n");   printf(" 1.fibonacci\n 2.factorial\n 3.power\n");   printf("enter your choice : ");   scanf("%d",&c);   switch(c)   {    case 1:     printf("\n\nenter the limit : ");     scanf("%d",&p);     printf("\nfibonacci series : ");     while(i<=p)     {      printf(" %d ",fibonacci(i));      i++;     }     break;    case 2:     printf("\n\nenter a number : ");     scanf("%d",&m);     f=factorial(m);     printf("\nfactorial = %d",f);  ...
Read more

Monday, 12 December 2011

MG university b tech 1st year syllubus(common for all branches)

EN010 101 ENGINEERING MATHEMATICS – I Teaching Scheme                                                                                         Credits: 5 2 hour lecture and 1 hour tutorial per week Objectives To impart mathematical background for studying engineering subjects. MODULE  I  (18 hours)    -      MATRIX Elementary transformation – echelon...
Read more

LinkWithin

Related Posts Plugin for WordPress, Blogger...