-->

Program Function dengan Prototype - Fungsi / Function C/C++

Praktikum Fungsi / Function C/C++

#include <iostream>
#include <conio.h>
using namespace std;

void garis (); //prototype function
main (void) //main function

{
 garis (); //panggil function
 cout << "NIM NAMA MAHASISWA" << endl;
 garis ();  //panggil function
 cout << "201600001 Reza A" << endl;
 cout << "201600002 Ujang" << endl;
 garis (); //panggil function
}
void garis () //detail function
{
 int i;
 for (i = 0; i <= 40; i++)
 {
  cout << "-";
 }
cout << endl;
}

Hasil running

Berlangganan update artikel terbaru via email:

0 Response to "Program Function dengan Prototype - Fungsi / Function C/C++"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel