Skip to content

Instantly share code, notes, and snippets.

@sagardere
Created June 5, 2018 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagardere/fe63abbd730f1b2de9e2099b6740d476 to your computer and use it in GitHub Desktop.
Save sagardere/fe63abbd730f1b2de9e2099b6740d476 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void main()
{
int i,j,askey;
printf("\n\nPrint the 3*3 matrix from i to j\n");
printf("---------------------------------\n");
askey=105;
printf("\nThe matrix is : \n");
for(i=0;i<3;i++)
{
printf("\n");
for(j=0;j<3;j++)
{
printf("%2c", askey++ );
}
}
printf("\n\n");
}
/*
O/P :
Print the 3*3 matrix from i to j
------------------------------------
The matrix is :
i j k
l m n
o p q
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment