#include <stdio.h> int main() { struct Money { int Yuan; int Jiao; int Fen; } m[2] = {50, 6, 7, 60, 7, 8}; printf("%dYuan%dJiao%dFen\t%dYuan%dJiao%dFen\n", m[0].Yuan, m[0].Jiao, m[0].Fen, m[1].Yuan, m[1].Jiao, m[1].Fen); int i; for (i = 0; i < 2; i++) scanf("%d%d%d", &m[i].Yuan, &m[i].Jiao, &m[i].Fen); printf("%dYuan%dJiao%dFen\t%dYuan%dJiao%dFen\n", m[0].Yuan, m[0].Jiao, m[0].Fen, m[1].Yuan, m[1].Jiao, m[1].Fen); return 0; }