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 C-Programming
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();
}
in C-Programming
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