Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
2.2 kB
6
Indexable
Never
#include<stdio.h>
#include "processthreadsapi.h"


void print(int* arr,int n,int size)
{
    printf("Series %d: ",n);
    for(int i=0;i<size;i++)
        printf("%d ",arr[i]);

}
void Series(int n)
{
    if(n==1)
    {
        int arr[]={11,12,13,14,15};
        print(arr,1,5);
        printf("\n");
    }
   if(n==2)
    {
        int arr[]={16,17,18,19,20};
        print(arr,2,5);
        printf("\n");
    }
     if(n==3)
    {
        int arr[]={11,13,15,17,19};
        print(arr,3,5);
        printf("\n");
    }
    if(n==4)
    {
        int arr[]={12,14,16,18,20};
        print(arr,4,5);
        printf("\n");
    }
   if(n==5)
    {
        int arr[]={31,32,33,34,35};
        print(arr,5,5);
        printf("\n");
    }
    if(n==6)
    {
        int arr[]={31,32,33,34,35};
        print(arr,5,5);
        printf("\n");
    }
    if(n==6)
    {
        int arr[]={36,37,38,39,40};
        print(arr,6,5);
        printf("\n");
    }
       if(n==7)
    {
        int arr[]={41,42,43,44,45};
        print(arr,7,5);
        printf("\n");
    }
    if(n==8)
    {
        int arr[]={46,47,48,49,50};
        print(arr,8,5);
        printf("\n");
    }
    if(n==9)
    {
        char arr[]={'P','Q','R','S','T'	};
        printf("Series 9: ");
        for(int i=0;i<5;i++)
            printf("%c ",arr[i]);
                printf("\n");
    }
    if(n==10)
    {
        char arr[]={'V','W','X','Y','Z'	};
        printf("Series 10: ");
        for(int i=0;i<5;i++)
            printf("%c ",arr[i]);
                printf("\n");
    }
      if(n==11)
    {
        char arr[]={'p','q','r','s','t'	};
        printf("Series 11: ");
        for(int i=0;i<5;i++)
            printf("%c ",arr[i]);
                printf("\n");
    }
     if(n==12)
    {
        char arr[]={'v','w','x','y','z'	};
        printf("Series 12: ");
        for(int i=0;i<5;i++)
            printf("%c ",arr[i]);
                printf("\n");
    }
}

int main(int argc,char** argv)
{
    for(int i=1;i<=12;i++)
    {
        Series(i);
    }
    return 0;
}