Indahnya Berbagi
Beranda
Linux
Windows
Software
Jaringan
Blogger
Pemrograman
Makalah
Artikel
News
Tips n Triks
Category
Artikel
(7)
Blogger
(1)
Jaringan
(2)
Linux
(2)
Makalah
(2)
News
(1)
Pemrograman
(6)
Software
(1)
Tips n Tricks
(10)
Windows
(1)
Friday, April 26, 2013
Menampilkan Matriks 2x2 di Microsoft Visual C++
3:44:00 PM
Pemrograman
No comments
#include <stdio.h>
int i,j,m,n;
int b[5][5];
main()
{
m=2;
n=2;
for(i=0;i<n;i++)
{
for(j=0;j<m;j++)
{
printf("b [%i] [%i] = ",i+1,j+1);
scanf("%i",&b[i][j]);
}
}
for (i=0;i<n;i++)
{
for (j=0;j<m;j++)
{
printf("%6d",b[i][j]);
}
printf("\n");
}
}
Email This
BlogThis!
Share to Twitter
Share to Facebook
Newer Post
Older Post
Home
0 comments:
Post a Comment
Live Traffic Feed
Feedjit Live Blog Stats
0 comments:
Post a Comment