!!"#!$$% &'()*+,- +.&'/0,10,2+. +34567&8'+#'$$ 9: ;:< ;=> ?@ABCA: !"!#$%#&'('#!)&)# #*+,-./0#12 !3#456##) /0#1#7 8,9:8;9<)3<42<+!/0#18,9 #*+-./0#12 !3#456##) ;/0#1#7 89:8;9<)3<42<+!89 # = >$3#?+#@!-./0#12 !3#456# #) ;!/0#1#78!9:8;9<)3<42<+!8!9 #&$;+A#7+,:;BC#D" EFG/H:/ ,IBJ ,BJ ,IBJ ,IBJ K/LM !"!#$%#&'('#!)&)#<+!NLO(!P$ QRSTIUI,I,ITTIUJIBJIVVIVW Q2 *+ Q89 Q8B9 Q8U9 Q8X9 Q8J9 Q8Y9 Q8Z9 Q8V9 Q8T9 * 0$ T U , , TT UJ BJ VV V *+ , U , T TT UJ BJ VV V *+B U , T TT UJ BJ VV V *+U T , TT UJ BJ VV V *+X , TT UJ BJ VV V *+J V UJ BJ VV TT *+Y BJ UJ VV TT *+Z UJ VV TT *+V VV TT Q:#>$" , U T , V BJ UJ VV TT ,IZJ ,IBJ B [4 \]2^(_>$P -`X )(_>$Pa<+!3#%/#$N#bcRS I B II W<3/M#$NDdI ⊄ c2!(DN#]2^ a:$- # → c ∈ d e \(H34D#6#"3#$N#b A3/M#$ND#$Nd)fF$L!g() !#7 dC #Qh 2 Φ ≠i ⊂ Di → c ∈ d e ,IBJ ,IBJ $%##)3#DDN#]2^(_>$P )-(_>$Pa<+!#%/#$N#bc<#%//M#$N Dd a-%/Q(]2^a $%##)3- ; [f#QRc ; jf/(k!>$3#()k!5]5!Q#$N#bD SQ;W e Rc ,IBJ ,IBJ K/LM *+-3QRaRSI*IIlImIIIW *+B-j0(#()k!+#3#$N#b^Q ;j)k!/0#1-#2S*IIlImIIIW e Ra </#nm]!:#$N<oS*IIlImIIIW e pQRS*IIlImIIIW ;j)k!/0#1*I#2SIlImIIIW e Ra </#nm]!:#$N<oSIlImIIIW e < /#n*pQRSIlImIIIW ;j)k!/0#1I#2SlImIIIW e qapQ<r(SI lImIIIW ;j)k!/0#1lI#2-SImIIIW e Ra</# nm]!:#$N<oSImIIIW e < /#n*pQRSImIIIW ;j)k!/0#1mI#2-SIIIW e Ra< /#nmIn*I*nlpQRSIIIW ;j)k!/0#1I#2-SIIW e qa pQ<r(SIIIW ;j)k!/0#1I#2-SIIW e qa pQ<r(SIIIW ;j)k!/0#1I#2-SIIW e Ra <nmIn*I*nlpQRSIIW Rs%QRSIIW(DN#]2^AaC ,IBJ ,IJ, ,IBJ -B`X U #include <conio.h> #include <iostream.h> #include <math.h> int uscln(int a,int b) { while (!(a%b==0) ) { int r=b; b=a%b;a=r; } return b; } class PS { private: int t,m; public: void nhap(); void hienthi(); void rutgon(); PS operator+(const PS &p2); void operator=(const PS &p2); }; ,IBJ void PS:: nhap() { cout<<"\n Nhap tu so:"; cin>>t; cout<<"Nhap mau so:"; cin>>m; } void PS:: hienthi() { cout <<t<<"/"<<m; } void PS::rutgon() { int uc=uscln(t,m); t=t/uc; m=m/uc; } void PS::operator=(const PS &p2) { t=p2.t; m=p2.m; } PS PS::operator+(const PS &p2) { PS tg; tg.t=t*p2.m+p2.t*m; tg.m=m*p2.m; return tg; } ,I ,I ,IBJ ,I ,IBJ -U`X void nhapmangPS(PS *a,int n) { for (int i=1;i<=n;i++) a[i].nhap(); } PS tongmangPS(PS *a,int n) { PS tg; tg=a[1]; for(int i=2;i<=n;i++) tg=tg+a[i]; tg.rutgon(); return tg; } ,IBJ ,IJ void main() { int n; PS a[10],p2; cout<<"\nNhap so phan so:"; cin>>n; nhapmangPS(a,n); p2=tongmangPS(a,n); cout<<"Tong cua mang cac phan so la:";p2.hienthi(); getch(); } ,IB ?@CD tttI ttt#3 ttuDttt -X`X . return b; } class PS { private: int t,m; public: void nhap(); void hienthi(); void rutgon(); PS operator+(const PS &p2); void operator=(const. cin>>t; cout<<"Nhap mau so:"; cin>>m; } void PS:: hienthi() { cout <<t<<"/"<<m; } void PS::rutgon() {