Page

Wednesday, 5 September 2018

program for column matrix in c

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a[100],i,n;
printf("How many elements in the array:");
scanf("%d",&n);
printf("Enter the elements");
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
printf("\n column matrix is:");
for(i=0;i<n;i++)
{
printf("\n%d",a[i]);
}
getch();
}



No comments:

Post a Comment