#include<stdio.h>
main()
{
int A[4][4],i,j,jum=0;
puts ("input matrik A");
for (i=1;i<=3;i++){
for (j=1;j<=3;j++){
printf ("A[%d][%d]=",i,j); scanf ("%d",&A[i][j]);
if (i==0);
jum+=A[i][j];
}
printf ("jumlah baris pertama adalah= ");
printf("%d",jum);
}
}
main()
{
int A[4][4],i,j,jum=0;
puts ("input matrik A");
for (i=1;i<=3;i++){
for (j=1;j<=3;j++){
printf ("A[%d][%d]=",i,j); scanf ("%d",&A[i][j]);
if (i==0);
jum+=A[i][j];
}
printf ("jumlah baris pertama adalah= ");
printf("%d",jum);
}
}
0 comments:
Posting Komentar