1. flowchart program “case of”
2. algoritma program faktorial
- Mulai
- Masukkan nilai n
- Hitung factorial n dengan pencacahan dari atas kebawah yaitu n!= n down to 1 do
- Tampilkan nilai n!
- selesai
1. flowchart program “case of”
2. algoritma program faktorial
- Mulai
- Masukkan nilai n
- Hitung factorial n dengan pencacahan dari atas kebawah yaitu n!= n down to 1 do
- Tampilkan nilai n!
- selesai
Algoritma
flowchart:
hasilnya:
1. Bilangan Integer
Bilangan atau angka yang tidak memiliki titik desimal atau pecahan, dan biasa disebut bilangan bulat.
Tipe Data Ukuran Tempat Rentang Nilai
Byte 1 byte 0 s/d +255
Shortint 1 byte -28 s/d +127
integer 2 bytes -32768 s/d 32767
Word 2 bytes 0 s/d 65535
Longint 4 bytes 2147483648 s/d 2147483647
Contoh :
10, +225, -10,+25.
2. Bilangan real atau nyata merupakan jenis bilangan pecahan.
Contoh :
235.45, +13.99, -87.76
3. Tipe data ini digunakan untuk pengambilan keputusan dalam operasi logika. Terdiri dari true disimbolkan ‘T’ dan False yang disimbolkan ‘F’. Ketika kita ingin mendapatklan hasil yang valid/pasti, kita menggunakan tipe data boolean untuk memperoleh keputusan dalam suatu penyelesaian yang pasti.
Contoh :
Program tampil_boolen;
begin
writeln(ord(true));
writeln(ord(false));
end.
4. Char
Tipe data ini menyimpan karakter yang diketikkan dari keyboard, memiliki 266 macam yang terdapat dalam tabel ASCII (American Standard Code for Information Interchange).
Contoh :
‘a’ ‘B’ ‘+’,
5. String
String adalah tipe data bentukan yang merupakan deretan karakter yang membentuk satu kata atau satu kalimat, yang biasanya diapit oleh satu tanda kutip.
Contoh :
‘ABCDEF’
selesai,,,,
mudah kan
whether an interactive shells for Python language program that offers improved introspect compared with standard leather, extra leather syntax, highlight the code, and completion costs.
A number of popular articles in computer journalists have discussed the benefits of IPython, and he is a component SciPy package. He gave himself well for pemrototipean quickly and can often be seen together with Matplotlib for scientific and engineering jobs.
Another prominent feature is that IPython work with frames of the main GUI (Tkinter, GTK, Qt and WX) in one fashion rather than grouping errors into account development and search interactive GUIs. Python skin it only provides this standard with Tkinter. Skills have been recently added to the IPython to interactively manage clusters highly parallel compute using asynchronous callbacks status and / or classical MPI.
IPython can also be used as a replacement firing system, especially on Windows which have skin that is at least capable. Actions from IPython most familiar from Unix shells, but he gives the ability and flexibility to carry out compliance in Python live environment.
Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!