Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  mtrs
Language: C/C++
Code:
#include <stdio.h>
#include<stdlib.h>
int main()
{
     int n;
     int x=1;
     int m=1;
     int fakt=1;
     float A;
     int sonuc[100];
     printf("n degerini giriniz: ");
     scanf("%d",&n);
     printf("x degerini giriniz: ");
     scanf("%d",&x);
     
     if(n==0)
     {
          printf("HATALI GİRİŞ/n");
          
     }
     else
     {     for(int i=1;i<=n;i++)
          {     
               for(int j=m;j>=1;j--)
               {
                    fakt=fakt*j;
                         
                    x*=x;
               printf("%d",fakt);
               }
               A=x/fakt;
               sonuc[i]=A;
               printf("%d ",sonuc[i]);
               m=m+2;
          }     
     }     
     
     system("PAUSE");
     return 0;
}
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
Comments: