Sebenarnya contoh ini saya tujukan untuk mahasiswa amikom yang sedang menempuh mata kuliah pemrograman terstruktur. Tapi kalau kiranya pembaca juga membutuhkannya silahkan saja dibaca. :)
Oke, langsung saja, berikut adalah source codenya :
/*===================================================================
=====================================================================
================== =======================
=============== Author : Bintang Catur Putra ====================
================== =======================
=====================================================================
===================================================================*/
//Preprosesor
#include <stdio.h>
#include <conio.h>
//Fungsi penghitung luas.
int luas (int p, int l)
{
return p * l;
}
//Fungsi utama.
main()
{
//Pendeklarasian variabel yang dibutuhkan.
int p[100], l[100], ulang;
printf("PROGRAM PENGHITUNG LUAS PERSEGI PANJANG\n\n");
printf("Masukan banyaknya perulangan (max 100) = ");
scanf("%d", &ulang);
//Proses input panjang dan luas yang berulang.
for (int i = 0; i < ulang; i++)
{
printf("\nPersegi panjanjang ke - %d\n", i + 1);
printf("Masukan panjang\t= ");
scanf("%d", &p[i]);
printf("Masukan lebar\t= ");
scanf("%d", &l[i]);
}
printf("\n");
//Proses menampilkan hasil.
for (int i = 0; i < ulang; i++)
{
printf("Persegi panjanjang ke - %d luasnya adalah = %d\n", i + 1, luas(p[i], l[i]));
}
getch();
}
=====================================================================
================== =======================
=============== Author : Bintang Catur Putra ====================
================== =======================
=====================================================================
===================================================================*/
//Preprosesor
#include <stdio.h>
#include <conio.h>
//Fungsi penghitung luas.
int luas (int p, int l)
{
return p * l;
}
//Fungsi utama.
main()
{
//Pendeklarasian variabel yang dibutuhkan.
int p[100], l[100], ulang;
printf("PROGRAM PENGHITUNG LUAS PERSEGI PANJANG\n\n");
printf("Masukan banyaknya perulangan (max 100) = ");
scanf("%d", &ulang);
//Proses input panjang dan luas yang berulang.
for (int i = 0; i < ulang; i++)
{
printf("\nPersegi panjanjang ke - %d\n", i + 1);
printf("Masukan panjang\t= ");
scanf("%d", &p[i]);
printf("Masukan lebar\t= ");
scanf("%d", &l[i]);
}
printf("\n");
//Proses menampilkan hasil.
for (int i = 0; i < ulang; i++)
{
printf("Persegi panjanjang ke - %d luasnya adalah = %d\n", i + 1, luas(p[i], l[i]));
}
getch();
}
atau source yang lebih rapi download disini.
trims infonya ya sangat bermanfaat sekali
ReplyDeleteinfonya sangat menarik dan bermanfaat..
ReplyDeletemaksih banyak atas infonya..
ReplyDelete===>> FOTO BUGIL TERBARU
===>> FOTO MEMEK SD IMUT
===>> FOTO HOT ARTIS INDO TERBARU
===>> CERITA SEX DEWASA
===>> CERITA MESUM ABG SMP
===>> FOTO HOT 1080 HD
===>> FOTO ANAK SD DIPERKOSA 2 ORANG
bagus artikelnyna, jadi nambah pengetahuan saya :D
ReplyDeleteST3 Telkom
ReplyDeleteSilahkan download file PDF nya buat belajar komputer di rumah disini
http://incaralaptop.blogspot.com/2016/11/cara-belajar-komputer-dasar-untuk.html
Menangkan Jutaan Rupiah dan Dapatkan Jackpot Hingga Puluhan Juta Dengan Bermain di www(.)SmsQQ(.)com
ReplyDeleteKelebihan dari Agen Judi Online SmsQQ :
-Situs Aman dan Terpercaya.
- Minimal Deposit Hanya Rp.10.000
- Proses Setor Dana & Tarik Dana Akan Diproses Dengan Cepat (Jika Tidak Ada Gangguan).
- Bonus Turnover 0.3%-0.5% (Disetiap Harinya)
- Bonus Refferal 20% (Seumur Hidup)
-Pelayanan Ramah dan Sopan.Customer Service Online 24 Jam.
- 4 Bank Lokal Tersedia : BCA-MANDIRI-BNI-BRI
8 Permainan Dalam 1 ID :
Poker - BandarQ - DominoQQ - Capsa Susun - AduQ - Sakong - Bandar Poker - Bandar66
Info Lebih Lanjut Hubungi Kami di :
BBM: 2AD05265
WA: +855968010699
Skype: smsqqcom@gmail.com
Mas itu array kah
ReplyDeleteKabar Gembira Buat Semua Member Setia Bolavita
ReplyDeleteDalam Rangka Menyambut Ulang Tahun Bolavita Ke 6 (Enam)
Bolavita Memberikan Bonus Spesial IDR 2.000.000
Ayo Buruan Gabung Sekarang dan Ambil Bonusnya
Mari Kunjungin Segera Website kami :
www(titik)bolavita(titik)fun
www(titik)sateayam(titik)club
www(titik)pokervita(titik)live
Info Lebih Lanjut Bisa Hub kami Di :
Live Chat Online 24 JAM NONSTOP !!!
WA : +628122222995
Pin BBM : BOLAVITA / D8C363CA (NEW)
Ijin promo yahh
ReplyDeleteHallo Bossku ! mau kasih info sedikit nihh , di EDENPOKER lagi memberikan bonus
10.000 Ribu GRATISS LHOO dan kami juga memberikan bonus next depo 5 % juga lhoo
ayoo buruaan gabung bersama kami di E D E N P O K E R . X Y Z
Ayo Pilih Ayam Jagoanmu Dan Pasang Taruhanmu... Bandar Sabung Ayam Online Terbesar dan Terpercaya di indonesia, Kunjungi Website Kami Di Ayo Daftar Disini Sekarang Juga untuk mendapatkan akun Sabung Ayam anda.
ReplyDeleteHubungi kami di WA: +62-812-2222-995 & Telegram : @bolavitacc
This comment has been removed by the author.
ReplyDeleteFind answers to your queries here
ReplyDeleteglobalemployees
globalemployees
globalemployees
Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
ReplyDeletepython training in noida
Your post is very great.i read this post this is a very helpful. i will definitely go ahead and take advantage of this. You absolutely have wonderful stories.Cheers for sharing with us your blog. digtal marketing training in noida
ReplyDeleteVolvoQQ
ReplyDeleteVolvoQQ.com
Situs Poker
Poker Online
Domino QQ
QQ Online
Dominobet
Link Alternatif VolvoQQ
Login VolvoQQ
Daftar VolvoQQ
Livechat VolvoQQ
Situs Judi VolvoQQ
Bonus New Member 100%
Poker88
Domino QQ
BandarQQ
Ligapoker88
Jackpot Terbesar
Agen Judi Poker
ReplyDeleteAgen Judi Poker Online
Agen Judi Poker Terbaik
Agen Judi Poker Indonesia
Agen Judi Poker Terpercaya
Nyonya4D
Poker7Club
Login Poker7Club
Link Poker7Club
Login Poker7Club
Link Alternatif Poker7Club
IDN Poker Online
Agen IDN Poker Terpercaya
Capsa Susun Online
Agen Poker
Agen Poker Terpercaya
Poker77
Login Poker77
imopoker
ReplyDeleteimopoker blackjack
imopoker super10
imopoker omaha
imopoker ceme
imopoker ceme keliling
imopoker capsa
imopoker domino
imopoker Bandar Poker IDN
imopoker poker
ReplyDeletehpoker
Situs Poker Online
Poker Online
LiveChat HPPoker
Hppoker
Bonus Poker
hppoker
Bandar Poker Online
web server
ReplyDeletehobispin.net
bomjudi.club
bomjudi.xyz
gudangjudi.net
gudangjudi.vip
landing page
cuanbanget.net
bomfreespin.com
hobifreespin.com
websupport
gudanginfo88.com
gampangcuan.net
hobimenang.net
there are various Digital Marketing Companies in India working to help users in ranking their content on the top on Google. These SEO Companies also deliver assistance in finding ways to get high rank. To help you in such a scenario, we got you a guide.
ReplyDeletesearch engine optimization company in noida
jadwal Euro
ReplyDeleteSeputar Betting
Info Dunia Betting
Sportbook Terbesar Indonesia
Sportbook Spesial Euro
prediksi bola
kawanbetting
bomfreespin
taruhan bola
judi bola
Hobi Menang
ReplyDeleteKawan Betting
Pemburu Cuan
Situs Paling Gacor
Slot Pragmatic Gampang Menang
Bomfreespin
Bank Online 24 Jam
Hobifreespin
Bank Online 24 Jam
Tips Pasang Taruhan Sportsbook
Hobispin Situs Slot Tergacor
Situs Casino Online Terpercaya
Tips Menang Poker Online
Bomjudi Situs Slot Terpopuler
Bomjudi
jadwal Euro
Seputar Betting
taruhan bola
judi bola
Judi Mesin Slot Online
ReplyDeleteJudi Online Tanpa Deposit
Isin Live Togel
Link Judi Online
Agen Bola
Judi Online24jam Slot Terpercaya
Judi Slot Pragmatic Play
Situs Parlay
Website Judi Bola Terpercaya
Judi Slot Online Apk
Cara Daftar Roulette Online
Judi Slot Online Terbaik
Situs Rekomendasi PokerClub88
Situs Alternatif Pokerclub88
Italia Juara Euro 2020
Situs Paling Gacor
ReplyDeleteSlot Pragmatic Gampang Menang
Slot Pragmatic Gacor
Bom judi
Bomjudi
Game Slot Dapat Uang
Hobispin
Judi Online BRI 24 Jam
Pemburucuan
Situs Paling Cuan
AFB 365
AFB365
bomjp
Bom jp
"MITRA77
ReplyDeleteMitra77
mitra77
MITRA77"
Best Schools in Kasganj, best schools in Kasganj. J.P. Public Academy rank in Top Schools in Kasganj. It is best CBSE School in Kasganj.
ReplyDeletelink server jakarta
ReplyDeleteLink server jakarta
Link Server Jakarta
LINK SERVER JAKARTA
Slot Gacor
info slot gacor
MITRA77
mitra77
Mitra77
suhu jp
SUHU JP
situs infini gacor
ReplyDeleteSitus infini gacor
SITUS INFINI GACOR
link slot
server asia
MITRA77
mitra77
Mitra77
suhu jp
Suhu Jp
sukabumi slotter
Sukabumi slotter
SUKABUMI SLOTTER
CIBADAK SLOTTER