Belajar & Berbagi

  • Soal CPNS

    Ada Kesempatan Mengikuti Test CPNS, Persaingan Semakin Ketat, Persiapan Dengan Belajar Soal

  • This is default featured slide 2 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

  • This is default featured slide 3 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

  • This is default featured slide 4 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

  • This is default featured slide 5 title

    Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Struktur Pascal & Variabel

Struktur Penulisan Pascal

Program UjiCoba;
    {Deklarasi}
      - Variabel
- Konstanta
- Procedure
- Fungsi
- Uses
Begin
   {Main Program} = Program Utama
Reserve Word : kata/karakter khusus yang digunakan secara internal di dalam aplikasi Pascal
Contohnya : Writel
End.

Variabel : Wadah utk menampung data

Variabel terdiri dari
1. Nama Variabel :
2. Type Data :
   a. Integer = Bilangan / Angka Bulat 
   b. Real/Float = Bilangan Pecahan (Nilai)
   c. Char = Karakter (perhuruf)
   d. Boolean = True / False
   e. String = Huruf (perkata)

Aturan Penulisan Variabel
1. Nama Variabel diawali dengan huruf
2. Nama Variabel tidak boleh diawali dengan angka
3. untuk memisahkan kata menggunakan underscore
4. tidak boleh menggunakan reserve word
5. tidak boleh menggunakan karakter sepesial seperti (!@#$%^%^&**((


data_siswa
data siswa

Extension File dari Pascal adalah :
1. (nama file).PAS = type file masih bisa di edit
    Terbentuk setelah kalian melakukan proses penyimpanan
2. (nama file).EXE = type file yang sudah jadi program
    Terbentuk setelah melakukan compiling (proses ctrl + F9)




0-25 = A
26-50 = B
Share:

Social Media

Popular Posts

Total Pageviews

Powered by Blogger.

Sponshorship

Labels