#include<stdio.

h>
#include<math.h>
#define pi 3.1415
int m,n,e;
float wr[64],wt[64];
void main()
{
printf("\n enter no. at samples:");
scanf("%d",&m);
printf("enter the choice at window function 1. redln 2. triangle");
scanf("%d",&c);
printf("\n element of window function are");
switch(c)
{
case 1:
for(n=0;n<=m-1;n++)
{
wr[n]=1;
printf("wr[%d]=%f\n",n,wr[n]);
}
break;
case 2:
for(n=0;n<=m-1;n++)
{
wt[w]=1-(2*(float)n/(m+1));
printf("wt[%d]=%f\n",n,wt[n]);
}
break;
}
}