REM NOM & Pr‚nom : Voumard Loic ' d‚finition des varibales DEFSNG G, M, P 'Montant, lonGtitre, Positab DEFSTR D, I, L, N, T, X 'Date, Identite, libelle, nature, titre, "using" X = "###,###,###.##" CLS RESTORE READ Inom, Iprenom DO Titre1 = "tenue de compte de Mr " Identite = Inom + " " + Iprenom Titre2 = Titre1 + Identite Gtitre = LEN(Titre2) POSITAB = (80 - Gtitre) / 2 PRINT TAB(POSITAB); Titre2 PRINT TAB(10); "COMPTE BANQUE"; TAB(40); "DEBIT"; TAB(54); "CREDIT" READ Date, Nature, Libelle, Montant MontantD = 0 MontantC = 0 DO SELECT CASE Nature CASE IS = "D" MontantD = MontantD + Montant CASE IS = "C" MontantC = MontantC = Montant PRINT TAB(7); "*"; TAB(10); Date; TAB(36); "*"; TAB(57); : PRINT USING X$; Montant; TAB(62); "*" END SELECT LOOP UNTIL Date = "x" LOOP UNTIL Date = "Z"
Web analytics