SKILL CODING ,information and News

What is the difference http and https ???

to know the different websites that use http and https is to look at the address bar in brawser that we are using. Try accessing the page paypal.com. After that, try again in a new vestinel.com Access tab. Is there something different from both the website? If you are the focus of the address bar of the browser, then you will find that when accessing paypal.com protocol used is HTTPS, while vestinel.com using the HTTP protocol. So what is the difference HTTP and HTTPS?



What HTTP and HTTPS

Hypertext Transfer Protocol (HTTP) is a protocol that manages communication between the client and the server. The Client is a web browser or other devices that can access, receive and display web content.
In general, the way of communication between the client and the server is a client makes a request to the server, then the server will send a response to the client. the response is an HTML file that can be displayed in a browser or other data requested by the client. All of these activities are governed by a protocol that is being discussed, namely HTTP.
While the Hypertext Transfer Protocol Secure (HTTPS) is a secure version of HTTP developed by Netscape Communications Corp.

Differences HTTP and HTTPS
As an activist IT, of course, we should be able to explain if someone asks about different HTTP and HTTPS. In this section we will discuss the differences in some aspects, namely:

1. Security of data transmitted
HTTP does not guarantee the security of data transmitted between client and server. While HTTPS ensures the security of data transmitted. Speaking about the security of the data, there are at least three aspects are handled by HTTPS, namely:
- Authentication Server, the authentication server, users are completely convinced that he communicates with the server that he headed.
- Data Confidentiality, data transmitted would not be understood by others, because the transmitted data is encrypted.
- Data Integrity, the transmitted data can not be changed by others, because it will be validated by the message authentication code (MAC).

2. Ports used 
To communicate, the default port 80 when using HTTPS uses port 443.

3. The need for SSL
By default, the protocol used for client-server communication HTTP. While being able to use the HTTPS protocol, we are required to have an SSL certificate. Secure Socket Layer (SSL) is a security technology that makes it possible to encrypt data to be transmitted between client and server. SSL allows us to send important information, such as credit card numbers and login credentials, secure.
Well, from the above, if you understand the difference HTTP and HTTPS?

Learn more »

Introduction to CSS for desaign web

css
Introduction to CSS
As you’ve seen, browsers render certain HTML elements with distinct styles (for example,
headings are large and bold, paragraphs are followed by a blank line, and so
forth). These styles are very basic and are primarily intended to help the reader understand
the structure and meaning of the document.
To go beyond this simple structure-based rendering, you use Cascading Style Sheets
(CSS). CSS is a stylesheet language that you use to define the visual presentation of an
HTML document. You can use CSS to define simple things like the text color, size, and
style (bold, italic, etc.), or complex things like page layout, gradients, opacity, and much
more.
Example 1-4 shows a CSS rule that instructs the browser to display any text in the body
element using the color red. In this example, body is the selector (this specifies what is
affected by the rule) and the curly braces enclose the declaration (the rule itself). The
declaration includes a set of properties and their values. In this example, color is the
property, and red is the value of the color property.
Example 1-4. A simple CSS rule
body { color: red; }
Property names are predefined in the CSS specification, which means that you can’t
just make them up. Each property expects an appropriate value, and there can be lots
of appropriate values and value formats for a given property.
For example, you can specify colors with predefined keywords like red, or by using
HTML color code notation, which uses a hexadecimal notation: a hash/pound sign
(#) followed by three pairs of hexadecimal digits (0–F) representing (from left to right)
red, green, and blue values (red is represented as #FF0000). Properties that expect measurements
can accept values like 10px, 75%, and 1em. Example 1-5 shows some common
declarations. The color code shown for background-color corresponds to the CSS
“gray.”
Example 1-5. Some common CSS declarations
body {
color: red;
background-color: #808080;
font-size: 12px;
font-style: italic;
font-weight: bold;
font-family: Arial;
}
Selectors come in a variety of flavors. If you want all of your hyperlinks (the a element)
to display in italics, add the following to your stylesheet:
a { font-style: italic; }
If you want to be more specific and only italicize the hyperlinks that are contained
somewhere within an h1 tag, add the following to your stylesheet:
h1 a { font-style: italic; }
You can also define your own custom selectors by adding id and/or class attributes to
your HTML tags. Consider the following HTML snippet:
<h1 class="loud">Hi there!</h1>
<p>Thanks for visiting my web page.</p>
<p>I hope you like it.</p>
<ul>
<li class="loud">Pizza</li>
<li>Beer</li>
<li>Dogs</li>
</ul>
If we add .loud { font-style: italic; } to the CSS for this HTML, Hi there! and
Pizza will show up italicized because they both have the loud class. The dot in front of
the .loud selector is important—it’s how the CSS knows to look for HTML tags with
a class of loud. If you omit the dot, the CSS will look for a loud tag, which doesn’t exist
in this snippet (or in HTML at all, for that matter).
Applying CSS by id is similar. To add a yellow background fill to the highlight paragraph
tag, use the following rule:
#highlight { background-color: yellow; }
Here, the # symbol tells the CSS to look for an HTML tag with the ID highlight.
To recap, you can opt to select elements by tag name (e.g., body, h1, p), by class name
(e.g., .loud, .subtle, .error), or by ID (e.g., #highlight, #login, #promo). And, you can
get more specific by chaining selectors together (e.g., h1 a, body ul .loud).
There are differences between class and id. Use class attributes when
you have more than one item on the page with the same class value.
Conversely, id values have to be unique to a page.
When I first learned this, I figured I’d just always use class attributes so
I wouldn’t have to worry about whether I was duping an ID value.
However, selecting elements by ID is much faster than by class, so you
can hurt your performance by overusing class selectors.
Applying a stylesheet
So now you understand the basics of CSS, but how do you apply a stylesheet to an
HTML page? Quite simple, actually! First, you save the CSS somewhere on your server
(usually in the same directory as your HTML file, though you can put it in a subdirectory).
Next, link to the stylesheet in the head of the HTML document, as shown in
Example 1-6. The href attribute in this example is a relative path, meaning it points to
a text file named screen.css in the same directory as the HTML page. You can also
specify absolute links, such as the following:
http://example.com/screen.css
If you are saving your HTML files on your local machine, you’ll want
to keep things simple: put the CSS file in the same directory as the HTML
file and use a relative path as shown in Example 1-6.
Example 1-6. Linking to a CSS stylesheet
<html>
<head>
<title>My Awesome Page</title>
<link rel="stylesheet" href="screen.css" type="text/css" />
</head>
<body>
<h1 class="loud">Hi there!</h1>
<p>Thanks for visiting my web page.</p>
<p>I hope you like it.</p>
<ul>
<li class="loud">Pizza</li>
<li>Beer</li>
<li>Dogs</li>
</ul>
</body>
</html>
Example 1-7 shows the contents of screen.css. You should save this file in the same
location as the HTML file:
Example 1-7. A simple stylesheet
body {
font-size: 12px;
font-weight: bold;
font-family: Arial;
}
a { font-style: italic; }
h1 a { font-style: italic; }
.loud { font-style: italic; }
#highlight { background-color: yellow; }
It’s worth pointing out that you can link to stylesheets that are hosted
on domains other than the one hosting the HTML document. However,
it’s considered very rude to link to someone else’s stylesheets without
permission, so please only link to your own.
For a quick and thorough crash course in CSS, I highly recommend CSS Pocket Refer
ence: Visual Presentation for the Web by Eric Meyer (O’Reilly). Meyer is the last word
when it comes to CSS, and this particular book is short enough to read during the typical
morning carpool (unless you are the person driving, in which case it could take considerably
longer—did I say “crash” course?).
Learn more »

Introduction to HTML for start to learn web programming

Introduction to HTML

When you are browsing the web, the pages you are viewing are just text documents
sitting on someone else’s computer. The text in a typical web page is wrapped in HTML
tags, which tell your browser about the structure of the document. With this information,
the browser can decide how to display the information in a way that makes sense.
Consider the web page snippet shown in Example 1-1. On the first line, the string Hi
there! is wrapped in a pair of h1 tags. Notice that the open tag and the close tag are
slightly different: the close tag has a slash (/) as the second character, while the open
tag does not have a slash.
Wrapping text in h1 tags tells the browser that the words enclosed are a heading, which
will cause it to be displayed in large bold text on its own line. There are also h2, h3, h4,
h5, and h6 heading tags. The lower the number, the more important the header, so text
wrapped in an h6 tag will be smaller (i.e., less important-looking) than text wrapped in
an h3 tag.
After the h1 tag in Example 1-1, there are two lines wrapped in p tags. These are called
paragraph tags. Browsers will display each paragraph on its own line. If the paragraph
is long enough to exceed the width of the browser window, the text will bump down
and continue on the next line. In either case, a blank line will be inserted after the
paragraph to separate it from the next item on the page.
Example 1-1. HTML snippet
<h1>Hi there!</h1>
<p>Thanks for visiting my web page.</p>
<p>I hope you like it.</p>
You can also put HTML tags inside other HTML tags. Example 1-2 shows an unordered
list (ul) tag that contains three list items (li). In a browser, this appears as a bulleted
list with each item on its own line. When you have a tag or tags inside another tag, the
inner tags are called child elements, or children, of the parent tag. So in this example,
the li tags are children of the ul parent.
Example 1-2. Unordered list
<ul>
<li>Pizza</li>
<li>Beer</li>
<li>Dogs</li>
</ul>
The tags covered so far are all block tags. The defining characteristic of block tags is
that they are displayed on a line of their own, with no elements to the left or right of
them. That is why the heading, paragraphs, and list items progress down the page
instead of across it. The opposite of a block tag is an inline tag, which, as the name
implies, can appear in a line. The emphasis tag (em) is an example of an inline tag, and
it looks like this:
<p>I <em>really</em> hope you like it.</p>
The granddaddy of the inline tags—and arguably the coolest feature of HTML—is the
a tag. The “a” stands for anchor, but at times I’ll also refer to it as a link or hyperlink.
Text wrapped in an anchor tag is clickable, such that clicking on it causes the browser
to load a new HTML page.
To tell the browser which new page to load, we have to add what’s called an attribute
to the tag. Attributes are named values that you insert into an open tag. In an anchor
tag, you use the href attribute to specify the location of the target page. Here’s a link
to Google’s home page:
<a href="http://www.google.com/">Google</a>
That might look like a bit of a jumble if you are not used to reading HTML, but you
should be able to pick out the URL for the Google home page. You’ll be seeing a lot of
a tags and href attributes throughout the book, so take a minute to get your head around
this if it doesn’t make sense at first glance.
There are a couple of things to keep in mind regarding attributes. Different
HTML tags allow different attributes. You can add multiple
attributes to an open tag by separating them with spaces. You never add
attributes to a closing tag. There are hundreds of possible combinations
of attributes and tags, but don’t sweat it—we only have to worry about
a dozen or so in this entire book.
The HTML snippet that we’ve been looking at would normally reside in the body section
of a complete HTML document. An HTML document is made up of two sections: the
head and the body. The body is where you put all the content that you want users to
see. The head contains information about the page, most of which is invisible to the
user.
The body and head are always wrapped in an html element. Example 1-3 shows the
snippet in the context of a proper HTML document. For now the head section contains
a title element, which tells the browser what text to display in the title bar of the
window.
Example 1-3. A proper HTML document
<html>
<head>
<title>My Awesome Page</title>
</head>
<body>
<h1>Hi there!</h1>
<p>Thanks for visiting my web page.</p>
<p>I hope you like it.</p>
<ul>
<li>Pizza</li>
<li>Beer</li>
<li>Dogs</li>
</ul>
</body>
</html>
Normally, when you are using your web browser you are viewing pages that are hosted
on the Internet. However, browsers are perfectly good at displaying HTML documents
that are on your local machine as well. To show you what I mean, I invite you to crack
open a text editor and enter the code in Example 1-3.

Picking the Right Text Editor
Some text editors are not suited for authoring HTML. In particular, you want to avoid
editors that support rich text editing, like Microsoft WordPad (Windows) or TextEdit
(Mac OS X). These types of editors can save their files in formats other than plain text,
which will break your HTML. If you must use TextEdit, save in plain text by choosing
Format→Make Plain Text. In Windows, use Notepad instead of WordPad.
If you are in the market for a good text editor, my recommendation on the Mac is
TextMate. There is a clone version for Windows called E Text Editor.
If free is your thing, you can download Text Wrangler for Mac. For Windows, Note
pad2 and Notepad++ are highly regarded. Linux comes with an assortment of text
editors, such as vi, nano, emacs, and gedit.
When you are finished entering the code from Example 1-3, save it to your desktop as
test.html and then open it with Chrome by either dragging the file onto the Chrome
application icon or opening Chrome and selecting File→Open File. Double-clicking
test.html will work as well, but it could open in your text editor or another browser,
depending on your settings.
Even if you aren’t running Mac OS X, you should use Chrome when
testing your Android web apps on a desktop web browser, because
Chrome is the closest desktop browser to Android’s mobile browser.
Chrome is available for Mac and Windows from http://google.com/
chrome.

Learn more »

Web Apps Versus Native Apps

First, I’d like to define what I mean by web app and native app and consider their pros
and cons.

What Is a Web App?
To me, a web app is basically a website that is specifically optimized for use on a
smartphone. The site content can be anything from a standard small business brochure
site to a mortgage calculator to a daily calorie tracker—the content is irrelevant. The
defining characteristics of a web app are that the user interface (UI) is built with web
standard technologies, it is available at a URL (public, private, or perhaps behind a
login), and it is optimized for the characteristics of a mobile device. A web app is not
installed on the phone, it is not available in the Android Market, and it is not written
with Java.
What Is a Native App?
In contrast, native apps are installed on the Android phone, they have access to the
hardware (speakers, accelerometer, camera, etc.), and they are written with Java. The
defining characteristic of a native app, however, is that it’s available in the Android
Market—a feature that has captured the imagination of a horde of software entrepreneurs
worldwide, me included.

Learn more »

6 keterampilan yang harus dikuasai oleh progremer PHP

sobat skill coding ada berminat menjadi seorang progremer php , Bahasa pemograman PHP sangatlah dibutuhkan saat ini namun anda tidak cukup dengan hanya menguasai PHP saja berikut adalah hal yang harus pahami jika sobat ingin menjadi progremer php sejati Pengembangan PHP sangatlah pesat di zaman sekarang ini, para pengembang PHP sangatlah bnyak sekarang ini. Jika Anda ingin menjadi sebagai pengembang PHP independen Anda harus tahu lebih dari sekedar PHP. Berikut adalah enam keterampilan penting lain yang Anda butuhkan untuk berhasil sebagai pengembang PHP.


1. JavaScript, HTML, dan CSS
Hal ini tidak cukup hari ini untuk sekedar tahu bagaimana untuk menulis kode PHP. Jika Anda ingin memulai bisnis PHP, Anda juga harus tahu bagaimana benar website kode menggunakan HTML dan CSS juga. Kemungkinannya adalah mungkin bahwa dalam proyek Anda Anda harus memperbaiki kesalahan yang membuat desainer, sehingga Anda akan perlu tahu bagaimana melakukan hal itu - dan bagaimana melakukannya dengan baik. Jika Anda tidak tahu bahasa-bahasa lain bersama dengan PHP, Anda akan dlm untuk banyak pekerjaan oleh kontraktor yang jauh lebih berpengalaman dalam pengembangan web dari Anda.

2. Mengetahui Apa yang Anda Tidak Tahu
Sama pentingnya dengan itu adalah untuk memastikan bahwa Anda dapat melakukan sebanyak mungkin untuk mengembangkan website, itu juga penting untuk mengetahui apa yang Anda tidak tahu. Ini adalah keterampilan beberapa pengembang PHP baru tampaknya lupa ketika memulai di pasar di mana sulit untuk menemukan entry-level pekerjaan pengembangan PHP. Anda harus memahami cara membaca permintaan usulan dan bagaimana untuk dimasukkan ke dalam tawaran pada pekerjaan yang dapat Anda lakukan kompeten. Jika tidak, Anda akan berakhir lebih melakukan sendiri dan merusak reputasi Anda dalam jangka panjang.

Komunikasi 3. Bisnis
Sebagai pengembang freelance atau kontrak PHP, Anda akan menjadi orang yang berkomunikasi dengan semua klien Anda. Pelajari cara menggunakan telepon untuk memastikan bahwa pesan email yang diterima, dan belajar bagaimana berkomunikasi seperti seorang profesional. Banyak jenis Techie memiliki masalah dengan komunikasi bisnis dasar (yang mungkin mengapa mereka memilih untuk bekerja di rumah sendiri di tempat pertama). Jika ini adalah Anda, pergi mengambil kelas komunikasi bisnis, atau berbicara dengan seorang profesional tentang bagaimana Anda dapat meningkatkan keterampilan ini.

4. Bisnis Keuangan
Sekali lagi, sebagai satu-pria (atau wanita) bisnis, Anda akan mengelola keuangan bisnis Anda sendiri '. Anda tidak perlu harus belajar bagaimana melakukan pajak Anda sendiri, yang dapat menjadi rumit untuk kontraktor independen, tetapi Anda pasti harus belajar bagaimana mengelola sehari-hari keuangan dari bisnis Anda. Ini termasuk belajar cara mengatur tingkat adil untuk diri sendiri berdasarkan pada harga pasar dan pajak yang harus membayar dari pendapatan usaha Anda.

5. Manajemen Proyek 
Sebagai kontraktor independen, Anda tidak akan punya siapa-siapa di atas bahu Anda meminta Anda untuk mendapatkan proyek dilakukan dengan batas waktu tertentu. Anda juga akan kemungkinan besar akan menyulap beberapa proyek dan beberapa klien pada waktu tertentu, jadi pastikan Anda tahu bagaimana mengelola waktu Anda sendiri, menulis proposal, dan mengelola ruang lingkup proyek Anda sehingga Anda dapat melakukan dan memberikan dan membangun reputasi besar untuk diri sendiri.

6. Jaringan
Jaringan dengan desainer freelance PHP lainnya - dan freelancer pengembangan web di ceruk lain - dapat membantu Anda menemukan lebih banyak pekerjaan dan mendapatkan referal. Gunakan Twitter, Facebook, dan LinkedIn untuk jaringan dengan pengembang lain, serta dengan klien Anda bekerja untuk atau telah bekerja di masa lalu. Jaringan keterampilan dapat sangat berharga dalam pasar kerja yang kompetitif.

Menurut Elance.com - salah satu situs terkemuka untuk freelance web developer dan freelancer di banyak ceruk lain - 2011 merupakan tahun rekor untuk pekerjaan freelance online. Perekrutan online memiliki lebih dari dua kali lipat sejak 2010, dan jumlah usaha yang mempekerjakan di Elance lebih dari dua kali lipat, juga. Itu mantra hal-hal baik bagi para profesional PHP yang memiliki keterampilan yang mereka butuhkan untuk berhasil.

Keenam keterampilan penting bagi kebanyakan freelancer, tetapi jika Anda seorang pengembang PHP, mereka mungkin bahkan lebih penting. Pengembangan web adalah bidang yang sangat kompetitif, dan melanggar di di tingkat yang lebih rendah sangat sulit. Setelah Anda mendapatkan keterampilan dan mendapatkan bergulir karir Anda, meskipun, Anda dapat menikmati pekerjaan yang menarik, fleksibilitas, dan membayar besar sebagai pengembang PHP independen

Learn more »

contoh program dasar pascal

kalian belajar algoritma di teknik informatka maupun yang menyangkut dengannya ,pastinya kalian pernah belajar ini . sedikit referensi dan contoh program pascal dasar bisa kalian ikuti di sini

Program menampilkan teks
uses wincrt;
begin;
 write('selamat datang')

 end.

Selamat datang
 
HASILNYA ADALAH:



Menampilkan teks dengan jarak
usEs wincrt;
begin writeln;
writeln ;
 GOTOXY(1,1) ;WRITE('SELAMAT SIANG' );
 GOTOXY(70,1);WRITE ('SIGLI');
 GOTOXY(1,20);WRITE ('INDONESIA');
 END.
HASILNYA ADALAH:

SELAMAT  SIANG                                                                                     SIGLI                   

INDONESIA
I
 
 





PROGRAM LUAS PERSEGI PANJANG;

uses wincrt;
var luas   :integer;
   panjang :integer;
   lebar   :integer;
begin
   panjang:=10;
   lebar:=3;
   luas :=panjang * lebar;
   write('luas persegi panjang',luas);
   end.
HASILNYA ADALAH:

LUAS PERSEGI PANJANG 30

 
 

 





program luas lingkaran:

var luas  :real;
     r    :real;
     pi   :real;
begin
r:=10;
pi:=3.14;
luas:=pi * r* 2;
   write('luas lingkaran =',luas: 4:2);
   end.
HASILNYA ADALAH:

LUAS LINGKARAN= 62.80
 
 



PROGRAM MENERIMA INPUT
     uses wincrt;

     var
      s :string;
      rm:string;
     begin
      write('sipa nama anda:');readln(rm);
      write('masukkan tekt:');
      readln(s);
      clrscr;
      writeln('hallho:',rm,' anda mengetik:',s);
        end.


HASILNYA ADALAH:

Siapa nama anda:
Ex: siapa nama anda:  jack
Masukkan teks:
Ex: saya mengerjakan program
Hallo: jack anda mengetik: saya mengerjakan program
 
 






program menerima_input rumus luas segitiga
uses wincrt;

var
 tg : real;
 al : real;
 luas:real;
begin
  write ('masukkan nilai alas :');readln(al);
  write ('masukkan nilai tinggi :');readln(tg);
  luas := 0.5 * al * tg;
  writeln ('luas segitiga adalah',luas :3:2);
  writeln ('hit <enter> to exit');
  readln;
 end.





MASUKAN NILAI ALAS: 11
MASUKAN NILAI TINGGI: 25
LUAS SEGITIGA ADALAH :  90.00
HIT<ENTER> TO EXIT
 
HASILNYA ADALAH:




 PERCABANG PASCAL IF, ELSE,THEN

1.PERNYATAAN IF PERTAMA
uses wincrt;
var
a:integer;
begin
   a :=5;
   if a= 1 then
   begin
   write ('selamat pagi');
   end
   else
   begin
   write ('selamat siang');
   end
   end.
HASILNYA ADALAH:

Selamat siang
 
 

  

2.PROGRAM PERNYATAAN IF
 uses wincrt;
var
nilai:integer;
begin
gotoxy (5,5); write ('masukan nilai:'); readln (nilai);
if nilai >65 then
begin
 
gotoxy (5,7) ;write('selamat anda lulus');
   end
   else
   begin
   gotoxy(5,7);write ('maaf anda tidak lulus');
   end
   end.
HASILNYA ADALAH:

Masukkan nilai :
Ex: masukkaan nilai 79
Selamat anda lulus
 
 





3.PROGRAM PERNYATAAN BERTINGKAT
Uses winCrt;
Var
 Nilai : Integer;
 Grade      : Char;
 Keterangan : String;
Begin
 ClrScr;
 Write('Masukan Nilai : ');
 ReadLn(Nilai);


 IF Nilai >= 90 THEN
 Begin
 Grade := 'A';
 Keterangan := 'Mengagumkan';
 End
 ELSE IF Nilai >= 80 THEN
 Begin
 Grade := 'B';
 Keterangan := 'Baik'
 End
 ELSE IF Nilai >= 70 THEN
 Begin
 Grade := 'C';
 Keterangan := 'Cukup'
 End
 ELSE
 Begin
 Grade := 'E';
 Keterangan := 'Gagal';
 End;

 WriteLn('Grade Nilai yang Didapat = ',Grade);
 WriteLn('Keterangan Nilai         = ',Keterangan);

 ReadLn;
End.

HASILNYA ADALAH:

Masukan Nilai:
Ex: Masukan Nilai: 80
Grade Yang di Dapat : B
Keterangan : Baik
 
 






Learn more »

kumpulan contoh program pascal :program menghitung ganjil genap pada pascal

bahasa pemograman pascal suatu bahasa yang di khususkan untuk akademik bahasa yang mudah di pahami karna layaknya bahasa inggris 
berikut adalah contoh atau source coding turbo pascal untuk menghitung jumlah ganjil genap dan rata ratanya 

program menghitung_jumlah_ganjil_genap_dan_reratanya;
uses wincrt;
var
data:array[1..100] of integer;
n,i:integer;
jumGanjil,nGanjil,JumGenap,nGenap:integer;
rataGenap,rataGanjil:real;
begin
jumGenap:=0;
nGenap:=0;
jumGanjil:=0;
nGanjil:=0;
write('Masukkan banyak data =');readln(n);
for i:= 1 to n do
begin
write('Data ke ',i,' =');readln(data[i]);
if data[i] mod 2 =0 then
begin
jumGenap:=jumGenap+data[i];
nGenap:=nGenap+1;
end
else
begin
jumGanjil:=JumGanjil+data[i];
nGanjil:=nGanjil+1;
end;
55
end;
rataGenap:=jumGenap/nGenap;
rataGanjil:=jumGanjil/nGanjil;
writeln('Cacah Genap = ',nGenap,' rata-rata Genap =
',rataGenap:0:2);
writeln('Cacah Ganjil = ',nGanjil,' rata-rata Ganjil =
',rataGanjil:0:2);
writeln('Jumlah Genap = ',jumGenap);
writeln('jumlah Ganjil = ',JumGanjil);
end.
Hasilnya adalah:


Learn more »