Professional Documents
Culture Documents
234 LK 12
234 LK 12
#include <stdio.h>
#define M 3 // sale πËø≠¿« «‡ ∞≥ºˆ, year πËø≠¿« ø¯º“ ∞≥ºˆ
#define N 4 // sale πËø≠¿« ø≠ ∞≥ºˆ
int main()
{
int sale[M][N]={
{130, 123, 135, 147},
{127, 121, 127, 134},
{130, 138, 142, 146}
};
int i, j, row_sum[M];
return 0;
}
*/
/*
#include <stdio.h>
#define M 4 // ¡˜ø¯ºˆ
#define N 4 // ∫–±‚ºˆ
int main()
{
int s[M][N]={
{39, 42, 52, 57},
{49, 52, 51, 62},
{52, 57, 60, 59},
{52,62, 67, 72}
};
int i, j, row_sum[M], col_sum[N]={0};
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
char id_no[14] = "120604314542";
int i, age, this_year, birth_year;
this_year = 2023;
if(id_no[6]=='1' || id_no[6]=='2') {
birth_year = 1900;
}
else
birth_year = 2000;
printf("%dªÏ\n", age);
return 0;
}
*/
#include <stdio.h>
#define N 5
int main()
{
char name[N][10] = {"¿Ø∏Ì¿Œ", "≥™πÿŒ", "¿Ã¿Áºˆ", "√÷¿ØΩƒ", "«—Ω…«ÿ"};
char id[N][14] = {"0106043214542", "0307304564795", "7709121674215",
"8103051625846", "8501092789542"};
char gender;
int i, col, age, this_year, birth_year;
setbuf(stdout, NULL);
if(id[i][6]=='1' || id[i][6]=='2')
birth_year = 1900;
else
birth_year = 2000;
printf("%dªÏ\n", age);
return 0;
}}}}}}