C Program to print 4 dimensional matrix with constant number
#include<stdio.h>
#include<conio.h>
main( )
{
int a[4][4],i,j,c;
clrscr( );
printf(“enter constant number”);
scanf(“%d”,&c);
for(i=0;i<4;i++)
{
for(j=0;j<4;j++)
a[i][j]=c;
for(i=0;i<4;i++)
{
for(j=0;j<4;j++)
printf(“%d”,a[i][j]);
printf(“\n”);
}
getch( );
}