Home » » Hitung Kata Versi NotePad

Hitung Kata Versi NotePad

Written By Unknown on Kamis, 08 November 2012 | 22.27



Program Hitung_Katakuandri;
uses wincrt;
var
            T:text;
            C: char;
            Ta: integer;
Procedure Hitung(var i:integer);
begin               
            assign (T,'D:/prokom/Lebay.txt');
            reset (T) ;
            read (T,C);
            if (C='.') then
            i:= -99
            else
            i:=1   ;
            repeat
                        if (C= ' ') then
                        begin
                        i:= i+1;
                        end;
                        read (T,C);
                        until (C='.');
            end;
begin
            writeln;
            Hitung(Ta);
            writeln(' ### Program Menghitung Kata Dalam Kalimat ### ');
            writeln('=====================================');
            writeln;
            writeln('Jumlah Kata Dalam Notepadku Adalah =  ',Ta);
            end.
Share this article :

0 komentar:

Posting Komentar

Terimakasih Telah membaca artikel kami. Silahkan tinggalkan komentar anda disini.

 
Support : Dunia Matematika | Dunia Fisik dan Fiksi
Copyright © 2013. Blog Berbagi Ilmu - All Rights Reserved
Template Created by AM Published by Aeroplane
Proudly powered by Blogger