Post Page Advertisement [Top]

C-Programming

Write a program in c to declare output in the form of row and column ??

Write a program in c to declare output in the form of row and column ??
in 

Write a program in c to declare output in the form of row and column ??
Image result for Write a program in c to declare output in the form of row and column ??

Code:-
/* output in the form of row and column.*/
#include<stdio.h>
#include<conio.h>
main()
{
int i,j,a[5][2];
clrscr();
printf("\n enter 10 number.");
for(i=0;i<5;i++)
{
for(j=0;j<2;j++)
scanf("%d",&a[i][j]);
}
printf("\n enter damentional array is \n");
for(i=0;i<5;i++)
{
for(j=0;j<2;j++)
printf("%d ", a[i][j]);
printf("\n");
}
getch();
}




No comments:

Post a Comment

Bottom Ad [Post Page]