Amcat Automata Paper Question with solution to obtain a output

Amcat Automata Paper Question with solution to obtain a output

SHARE:

Here is a question asked in Amcat Automata paper to Obtain a output as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 12 13 14 15

Here is a question asked in Amcat Automata paper to Obtain a output as follows:

1                                                                                                                                                                            
2 3                                                                                                                                                                            
4 5 6                                                                                                                                                                          
7 8 9 10                                                                                                                                                                        
11 12 13 14 15                                                                                                                                                                    
11 12 13 14 15                                                                                                                                                                    
7 8 9 10                                                                                                                                                                        
4 5 6                                                                                                                                                                          
2 3                                                                                                                                                                            
1

Amcat Automata Paper solution


Amcat Automata Paper Question with solution


Here is a C program code of the above question.

#include <stdio.h>
int main()
{
    int i ,j,t ,k=0,n=5,arr[20];
    for(i=1;i<=n;i++)
    {
        t=k+1;
        for(j=1;j<=i;j++)
        {k++;
         printf("%d",k);
         }printf("\n");
       
    }
   for(i=1;i<=n;i++)
   {
       for(j=n-i+1;j>0;j--)
       {
           arr[j]=k;
           k--;
       
       }
     
       for(j=1;j<=n-i+1;j++)
       {
           printf("%d",arr[j]);
       }
       printf("\n");
   
   }
    return 0;
}

 Also read: 
Thank you for reading.

COMMENTS

BLOGGER

Related Articles

Name

Android,49,App,3,Blogger,26,Blogging,31,Business,32,Computer,71,Development,11,Finance,1,Gadgets,1,Games,5,Guest,330,Health,21,iOS,10,Marketing,20,Online Tools,3,Programming,25,SEO,76,Social,292,Software,7,Startup,17,Technology,28,Website,20,Wordpress,21,
ltr
item
MindxMaster: Amcat Automata Paper Question with solution to obtain a output
Amcat Automata Paper Question with solution to obtain a output
Here is a question asked in Amcat Automata paper to Obtain a output as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 12 13 14 15
https://2.bp.blogspot.com/-FQhJSZUETE4/WGEenv2IP3I/AAAAAAAADv4/m-vddjDLEsc2iMg6f2NUAaoHLhRqc6MogCK4B/s1600/dd.png
https://2.bp.blogspot.com/-FQhJSZUETE4/WGEenv2IP3I/AAAAAAAADv4/m-vddjDLEsc2iMg6f2NUAaoHLhRqc6MogCK4B/s72-c/dd.png
MindxMaster
https://www.mindxmaster.com/2016/10/amcat-automata-paper-question-solution.html
https://www.mindxmaster.com/
https://www.mindxmaster.com/
https://www.mindxmaster.com/2016/10/amcat-automata-paper-question-solution.html
true
5332415103371288268
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy