Program Function dengan Prototype - Fungsi / Function C/C++
Praktikum Fungsi / Function C/C++
Hasil running
#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
0 Response to "Program Function dengan Prototype - Fungsi / Function C/C++"
Post a Comment