Page 88 - C:\Users\Admin\Desktop\Sach mem upweb\
P. 88

100 Problems & Solutions                                                Trang 88


                      Function tg(x: real): real;
                      Begin
                       if cos(x)<>0 then  tg:=sin(x)/cos(x);
                      End;
                      Procedure DocDen(var s:str20);
                      Var d:char;
                      Begin
                        repeat
                          read(f,d);
                        Until (d<>' ');
                        s:='';
                        While (d<>' ') do
                         begin
                              s:=s+d;
                              Read(f,d);
                         End;
                      End;
                      Function XdToado(s:str20):Integer;
                      Var i:integer;
                      Begin
                        i:=1;
                        While (i<=n) and (s<> tenden[i]) do inc(i);
                        XdToado:=i;
                      End;

                      Procedure InputDen;
                      Var i:integer;
                      Begin
                        Assign(f,input);
                        Reset(f);
                        Readln(f,n);
                        For i:=1 to n do
                         Begin
                             DocDen(TenDen[i]);
                             Readln(f,Toado[i,1],Toado[i,2]);
                         End;
                      End;
                      Procedure Inputkichban;
                      Begin
                        Readln(f,k);
                        For i:=1 to k do
                          Begin
                             Readln(f, goc[i],v[i]);
                             Read(f,t1[i]);
                             Docden(tenden1[i]);
                             Td1[i]:=Xdtoado(tenden1[i]);
                             Readln(f,g1[i]);
                             Read(f,t2[i]);
                             Docden(tenden2[i]);
                             Td2[i]:=Xdtoado(tenden2[i]);



                      Tin học & Nhà trường                                       100 Đề Toán - Tin học
   83   84   85   86   87   88   89   90   91   92   93