#include <stdio.h>
int main() {
int v[4][2];
int p, i ,j;
for(j=0; j<4; j++)
{
for(i=0; i<2; i++)
{
printf("%d층 %d호 인구수: ", j+1, i+1);
scanf("%d", &v[j][i]);
}
}
for(j=0; j<4; j++)
{
p=0;
p+= v[j][0];
p+= v[j][1];
printf("%d층 인구수: %d \n", j+1,p);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: