info@tutorialdiary.com

Saturday, May 21, 2016

AMCAT Automata Previous Year Question 2 | Previous Coding Question

2:43 PM

Share it Please
AMCAT Automata Previous Questions | AMCAT Previous Coding Questions

Q1. Write a C program to print below,when n=4 and s=3


3
44
555
555
44
3



Q2. Write a program to Merge sort using pointers.


1 comments:

  1. ANSWER TO 1ST ONE IS

    #include
    #include
    int main()
    {
    int i,j;
    clrscr();
    for(i=3;i<=5;i++)
    {
    for(j=3;j<=i;j++)
    {
    printf("%d",i);
    }
    printf("\n");
    }
    for(i=5;i>=3;i--)
    {
    for(j=3;j<=i;j++)
    {
    printf("%d",i);
    }
    printf("\n");
    }
    return 0;
    }

    ReplyDelete