Find the matrix using the assembly language
#include
int array[100];
int main()
{
int n,pos,a;
while(1)
{
printf("enter 1 to insert\n2 to print\n3 to exit");
int ch;
scanf("%d",&ch);
if(ch==1)
{
printf("enter the number of n");
scanf("%d",&n);
printf("enter the pos");
scanf("%d",&pos);
array[pos]=n;
}
else if(ch==2)
{
printf("enter the pos");
scanf("%d",&pos);
printf("your number is %d",array[pos]);
}
else if(ch==3)
break;
else
{
printf("your enter invalue choice");
}
}
return 0;
}
Attachment:- displaymatrix.rar